# Profile Cover Card

> A user profile card with a gradient cover banner, an overlapping avatar and a row of follower stats.

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

## HTML

```html
<article class="pcover">
  <div class="pcover-banner"></div>
  <span class="pcover-avatar" aria-hidden="true">MR</span>
  <h3>Maya Reyes</h3>
  <p>Product designer · Lisbon</p>
  <dl class="pcover-stats">
    <div><dt>Posts</dt><dd>128</dd></div>
    <div><dt>Followers</dt><dd>4.2k</dd></div>
    <div><dt>Following</dt><dd>310</dd></div>
  </dl>
</article>
```

## CSS

```css
.pcover {
  width: 240px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(30, 27, 75, 0.25);
  color: #1e1b4b;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.pcover-banner {
  height: 52px;
  background: linear-gradient(120deg, #818cf8, #c084fc, #f472b6);
}

.pcover-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px auto 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #312e81;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.pcover h3 {
  margin: 6px 0 2px;
  font-size: 16px;
}

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

.pcover-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0 0;
  padding: 10px 0 12px;
  border-top: 1px solid #eef2ff;
}

.pcover-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.pcover-stats dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.pcover-stats dt {
  color: #6b7280;
  font-size: 11px;
}
```

## Notes

- This CSS Profile Cover Card is 64 lines of pure CSS (1.0 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.
