# Social Post Card

> A social media post embed with avatar, name, handle, post text, timestamp and like count for testimonial walls.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: tweet, social media, post, embed, testimonial, wall of love
- Live preview: https://copy-css.com/snippets/social-post-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<article class="post-embed">
  <header>
    <span class="post-embed-avatar" aria-hidden="true">DV</span>
    <p><strong>Dana Vu</strong><span>@danavu</span></p>
  </header>
  <p>Shipped our new pricing page with zero JavaScript. CSS :has() is doing all the heavy lifting.</p>
  <footer>
    <time datetime="2026-11-03T14:14">2:14 PM · Nov 3, 2026</time>
    <span><span aria-hidden="true">♥</span> 248 likes</span>
  </footer>
</article>
```

## CSS

```css
.post-embed {
  width: 270px;
  padding: 14px 16px;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font-family: system-ui, sans-serif;
}

.post-embed header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-embed-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0369a1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.post-embed header p {
  display: grid;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.post-embed header p span {
  color: #64748b;
  font-size: 13px;
}

.post-embed > p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.post-embed footer {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

.post-embed footer span span {
  color: #e11d48;
}
```

## Notes

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