# Profile Card

> A compact user card with a gradient avatar and a follow button.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: profile, user, avatar, follow, social
- Live preview: https://copy-css.com/snippets/profile-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="profile">
  <div class="profile-avatar">JD</div>
  <div>
    <h3>Jamie Doe</h3>
    <p>Designer</p>
  </div>
  <button>Follow</button>
</div>
```

## CSS

```css
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.2);
  font-family: system-ui, sans-serif;
}

.profile-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-weight: 700;
}

.profile h3 {
  margin: 0;
  color: #111;
  font-size: 15px;
}

.profile p {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.profile button {
  margin-left: auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 600 13px system-ui, sans-serif;
  cursor: pointer;
}
```

## Notes

- This CSS Profile Card is 46 lines of pure CSS (0.8 KB) with no JavaScript and no dependencies. It uses linear gradients, box shadows, CSS Grid and Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
