CSS Profile Cover Card
A user profile card with a gradient cover banner, an overlapping avatar and a row of follower stats.
Maya Reyes
Product designer · Lisbon
- Posts
- 128
- Followers
- 4.2k
- Following
- 310
<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>
.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;
}
About this CSS Profile Cover Card
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. 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:
#fff#1e1b4b#818cf8#c084fc#f472b6#312e81#6b7280#eef2ff
How to use this profile cover card
- Copy the HTML and paste it where you want the element to appear.
- Copy the CSS into your stylesheet, or inside a
<style>tag. - Keep the
.pcoverclass name, or rename it in both places. Then tweak colors, sizes and timing to match your design. - Using React or Next.js? Change
classtoclassNamein 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.