A CSS card is a self-contained surface that groups related content into a single tappable unit. These 20 hand-coded designs are ready-to-ship cards for product grids, article tiles, profile blocks, and stat panels — copy the markup, swap your content, and ship.
A card is a container with padding, a background, a border or subtle box-shadow, and a border-radius to round the corners. Group the content — image, heading, text, actions — inside it and let it size to a fixed or flexible width. Add a :hover state for lift or glow. Every card in this gallery is built from this base; open any demo's code panel to copy the markup and CSS.
How do I add a hover effect to a CSS card?
Animate the card on :hover with a transition. Common card hover effects: a lift using transform: translateY(-6px) with a deeper box-shadow, a 3D tilt with perspective and rotateX/rotateY, a cursor spotlight tracking a radial-gradient, or an animated gradient border. The 3D Mouse Tilt and Cursor Spotlight demos show copy-paste versions of these effects.
Do these CSS cards need JavaScript?
No — all 20 card designs are pure CSS. Even the 3D tilt and cursor-spotlight effects use CSS-only techniques (transform, perspective, and pointer-tracking via modern CSS) so there's nothing to wire up. Drop the HTML and CSS in and the card works.
How do I make a flip card in pure CSS?
Use a container with perspective, an inner wrapper with transform-style: preserve-3d, and two faces (front and back) positioned on top of each other with backface-visibility: hidden. On :hover, rotate the inner wrapper 180deg — the back face turns into view. The 3D Flip Card demo here is a ready-to-copy example.
Are these CSS cards responsive and free to use?
Yes. Every card is responsive — it adapts to its container and works in a CSS grid or flex layout at any width. All 20 designs are MIT licensed and free for personal and commercial projects, with no attribution required.