CSS Author Bio Card

An "about the author" box for the end of blog posts, with an avatar, short bio and link to more posts.

  • author
  • bio
  • blog
  • byline
  • about the author
  • article footer
HTML
<aside class="author-bio" aria-label="About the author">
  <span class="author-bio-avatar" aria-hidden="true">JN</span>
  <div>
    <p class="author-bio-label">Written by</p>
    <h3>Jordan Ng</h3>
    <p>Writes about CSS architecture and design systems, and keeps a very long list of unread books.</p>
    <a href="#">More posts by Jordan</a>
  </div>
</aside>
CSS
.author-bio {
  display: flex;
  gap: 16px;
  max-width: 340px;
  padding: 18px 20px;
  border-left: 4px solid #57534e;
  border-radius: 4px 14px 14px 4px;
  background: #fff;
  color: #1c1917;
  font-family: Georgia, "Times New Roman", serif;
}

.author-bio-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e7e5e4;
  color: #44403c;
  font: 700 16px system-ui, sans-serif;
}

.author-bio-label {
  margin: 0;
  color: #78716c;
  font: 600 11px system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-bio h3 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.author-bio p {
  margin: 0;
  color: #57534e;
  font-size: 14px;
  line-height: 1.5;
}

.author-bio a {
  display: inline-block;
  margin-top: 8px;
  color: #1c1917;
  font: 600 13px system-ui, sans-serif;
  text-underline-offset: 3px;
}

.author-bio a:focus-visible {
  outline: 2px solid #1c1917;
  outline-offset: 2px;
}

About this CSS Author Bio Card

This CSS Author Bio Card is 56 lines of pure CSS (1.0 KB) with no JavaScript and no dependencies. It uses CSS Grid, Flexbox and keyboard focus styles. 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

The colors in this snippet. Search and replace them to match your brand:

  • #57534e
  • #fff
  • #1c1917
  • #e7e5e4
  • #44403c
  • #78716c

How to use this author bio 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 .author-bio 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