HTMLify

Profile Card
Views: 171 | Author: cody
<!DOCTYPE html>
<html>

<head>
  <style>
    body {
      font-family: 'Arial', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
      background-color: #f4f4f4;
    }

    .profile-card {
      width: 300px;
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      transition: transform 0.3s ease;
    }

    .profile-picture {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 50%;
    }

    .profile-info {
      padding: 20px;
      text-align: center;
    }

    .profile-name {
      font-size: 1.5em;
      color: #3498db;
    }

    .profile-title {
      color: #555;
    }

    .profile-card:hover {
      transform: scale(1.05);
    }
  </style>
</head>

<body>

  <div class="profile-card">
    <img src="https://placekitten.com/300/300" alt="Profile Picture" class="profile-picture">
    <div class="profile-info">
      <div class="profile-name">Cody</div>
      <div class="profile-title">Unknow Person</div>
    </div>
  </div>

</body>

</html>

Comments