Pet Profile Card
<div class="pet_profile_card">
<div class="profile-card">
<div class="profile-background"></div>
<div class="profile-content">
<div class="profile-avatar">
<img src="https://via.placeholder.com/80x80" alt="Profile" class="avatar-image" />
<div class="status-indicator"></div>
</div>
<div class="profile-info">
<h3 class="profile-name">Alexandra Smith</h3>
<p class="profile-role">Senior Developer</p>
<p class="profile-location">San Francisco, CA</p>
</div>
<div class="profile-stats">
<div class="stat">
<span class="stat-number">142</span>
<span class="stat-label">Projects</span>
</div>
<div class="stat">
<span class="stat-number">28k</span>
<span class="stat-label">Followers</span>
</div>
</div>
<div class="profile-actions">
<button class="action-btn primary">Follow</button>
<button class="action-btn secondary">Message</button>
</div>
</div>
</div>
</div>About Pet Profile Card
Pet Profile Card is a card built with gradient fills, transforms and layered shadows. Its stylesheet runs to 112 lines across 20 rules, declaring 28 distinct properties. It styles hover state explicitly, so the component responds to interaction rather than sitting still. Every format shown on this page is the same component, so you can take HTML, CSS and Tailwind depending on how your project is set up. Nothing is minified and nothing depends on a framework.
When to use
- Repeated use across a page, since there is no animation to become tiring when several appear together
- Places where one control is meant to be memorable, since 112 lines of CSS is a real investment for a single element
How it works
The base rule sets the shape with border-radius, display, height and margin. The fill is a gradient rather than a flat colour, so it is a single background declaration with no image to load. Movement is done with transforms rather than by changing position or size, which is what keeps it smooth: transforms are composited and do not force the browser to lay the page out again. State changes are eased with a transition, so hovering does not snap.
Accessibility
Built on a native <button> element, so keyboard focus and screen reader semantics work without extra attributes. No focus style is defined. Add one before shipping, or keyboard users lose track of position. That is one thing to fix before this ships in front of users.
Browser support
Everything this component uses has been supported across browsers for years, so no fallback is needed.
Related components
Frequently asked questions
Pet Profile Card
Luna
Golden Retriever
HEALTHYPet Information
Upcoming Events
<div class="pet_profile_card">
<div class="profile-card">
<div class="profile-background"></div>
<div class="profile-content">
<div class="profile-avatar">
<img src="https://via.placeholder.com/80x80" alt="Profile" class="avatar-image" />
<div class="status-indicator"></div>
</div>
<div class="profile-info">
<h3 class="profile-name">Alexandra Smith</h3>
<p class="profile-role">Senior Developer</p>
<p class="profile-location">San Francisco, CA</p>
</div>
<div class="profile-stats">
<div class="stat">
<span class="stat-number">142</span>
<span class="stat-label">Projects</span>
</div>
<div class="stat">
<span class="stat-number">28k</span>
<span class="stat-label">Followers</span>
</div>
</div>
<div class="profile-actions">
<button class="action-btn primary">Follow</button>
<button class="action-btn secondary">Message</button>
</div>
</div>
</div>
</div>What is inside Pet Profile Card
Pet Profile Card is a CSS button built with gradient fills, transforms, layered shadows, defined in 112 lines across 20 selectors.
Techniques used
CSS properties in this component
backgroundborderborder-radiusbottombox-shadowcolorcursordisplayfont-familyfont-sizefont-weightgapheightjustify-contentleftmarginmargin-bottommax-widthoverflowpaddingpositionrighttext-aligntoptransformtransitionwidthz-indexAccessibility check1 to fix
- Built on a native <button> element, so keyboard focus and screen reader semantics work without extra attributes.
- No focus style is defined. Add one before shipping, or keyboard users lose track of position.
These notes are generated by reading this component's own source, so they describe what it actually does rather than what a template says. Copy the code above in HTML, CSS, Tailwind and adapt it freely.