CSS Team Member Card

A centered team member card for about pages, with a ringed portrait, role and round contact links.

  • team
  • about page
  • staff
  • social links
  • avatar
  • portrait
HTML
<article class="team-card">
  <span class="team-card-photo" aria-hidden="true">LK</span>
  <h3>Leo Kim</h3>
  <p>Head of Engineering</p>
  <ul class="team-card-links">
    <li>
      <a href="#" aria-label="Email Leo">
        <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg>
      </a>
    </li>
    <li>
      <a href="#" aria-label="Leo's website">
        <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></svg>
      </a>
    </li>
  </ul>
</article>
CSS
.team-card {
  --accent: #0d9488;
  width: 200px;
  padding: 20px 16px;
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  background: #fff;
  color: #134e4a;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.team-card-photo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #0f766e);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.team-card h3 {
  margin: 0;
  font-size: 16px;
}

.team-card p {
  margin: 2px 0 12px;
  color: #5f7f7c;
  font-size: 13px;
}

.team-card-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0fdfa;
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.team-card-links a:hover {
  background: var(--accent);
  color: #fff;
}

.team-card-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.team-card-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

About this CSS Team Member Card

This CSS Team Member Card is 76 lines of pure CSS (1.3 KB) with no JavaScript and no dependencies. It uses transitions, linear gradients, box shadows and CSS Grid. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

Change these custom properties to restyle the team member card without touching the rest of the CSS:

PropertyDefault
--accent#0d9488

How to use this team member card

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .team-card class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback