Filterable, responsive portfolio grid templates in pure HTML and CSS. Masonry grids, equal-height cards, category filter buttons, hover overlays, and lightbox-ready structures — for designers, developers, photographers, and agencies showcasing their best work.
Get 180+ Templates — $35The right portfolio grid depends on your content: equal-height cards for consistent screenshots, masonry for photography with varying aspect ratios, a single-column case study list for writing-heavy work, and a full-screen gallery for visual artists. Using the wrong grid for your content type is one of the most common portfolio design mistakes.
CSS Grid with grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)). All cards equal height with object-fit: cover on images. Best for: UI/UX portfolios, web design work, and any content with consistent aspect ratios.
CSS columns property or CSS Grid with grid-auto-rows and grid-row: span for varying heights. Best for: photography portfolios, illustration, and content where preserving the original aspect ratio matters more than visual uniformity.
Buttons for each project category (Branding, Web, Print, Motion). Click toggles visibility of matching cards. Vanilla JavaScript data attribute filtering — under 15 lines of code, zero dependencies. Category filters help visitors self-select relevant work quickly.
On card hover: a semi-transparent overlay appears with project title, category tag, and "View Project" CTA. Pure CSS — opacity transition on the overlay div. Reveals information on demand without cluttering the grid at rest.
| Grid Type | CSS Property | Best For |
|---|---|---|
| Auto-fill responsive | grid-template-columns: repeat(auto-fill, minmax(280px,1fr)) | UI/web portfolios |
| Fixed 3-column | grid-template-columns: repeat(3,1fr) | Agency portfolios |
| Masonry (CSS) | columns: 3; column-gap: 16px | Photography |
| Featured + grid | grid-column: span 2 on first card | Case study highlight |
Commercial licence · No subscription · Instant download · Lifetime updates
Download All 180+ Templates — $35