Skip to content

Blog Post Grid

Responsive three-column Tailwind CSS blog grid with illustrated covers, category badges, author, date, reading time and fully clickable cards.

Also known as: blog grid, blog section, article cards grid, latest posts section

Blog Post Grid live demo

Open in new tab

Tailwind CSS code (HTML)

A responsive blog post grid built entirely with Tailwind CSS utility classes. Three article cards show an illustrated cover, a colored category badge, the publish date, a clamped excerpt, the author and the reading time, which makes the section a good fit for a blog index, a "latest articles" band on a landing page or the related posts area under an article.

How it works

The root is section.tbg-blog. A header row holds the eyebrow text, the #tbg-title heading, a short intro and a "View all posts" link; on phones they stack, from sm up the link moves to the right. The posts live in the ul.tbg-grid list, which is one column on phones, two columns from sm and three columns from lg.

Each article.tbg-card is a flex column with h-full, so cards in the same row are always equally tall and the author row is pushed to the bottom with mt-auto. The .tbg-cover area keeps a fixed aspect-[16/9] ratio and combines a Tailwind gradient with a small inline SVG illustration, so no image files are needed. The whole card is clickable through the "stretched link" pattern: the a.tbg-link inside the heading gets an absolutely positioned after: pseudo-element that covers the card, while the markup still contains only one link per post.

Hovering lifts the card with hover:-translate-y-1 and a softer indigo shadow, and the title turns indigo through the group-hover: variant. No JavaScript and no custom CSS are required.

Customization

  • lg:grid-cols-3 on .tbg-grid: change to lg:grid-cols-4 for a denser archive, or remove it to keep two columns on desktop.
  • .tbg-cover: replace the gradient div and inline SVG with an img of object-cover h-full w-full (for example a https://placehold.co/640x360 placeholder) when you have real cover images.
  • .tbg-category badges: swap bg-indigo-50 text-indigo-700 for another color pair to match each category in your CMS.
  • line-clamp-3 on the excerpt: use line-clamp-2 for shorter cards or remove it to show the full text.
  • aspect-[16/9] on .tbg-cover: use aspect-square or aspect-[4/3] for taller artwork.
  • hover:-translate-y-1 hover:shadow-xl: drop these on .tbg-card for a static, flat grid.
  • The datetime attribute on each time element: fill it with the ISO date from your CMS while the visible text stays human-readable.

Use cases

  • Blog indexes: three article cards show a cover, category badge, date and excerpt
  • Landing pages: a latest articles band highlights recent posts below the main content
  • Related posts: the grid fits under an article to keep readers on the site
  • Content marketing: author and reading time on each card help readers choose

Accessibility

The grid is a real list (ul with role="list", which keeps list semantics when list styles are removed) and each post is an article with an h3 under the section's h2. Every card has exactly one link, its title, so screen reader users do not hear duplicate links. The cover illustrations and author initials are decorative and marked aria-hidden="true", and the reading time has a visually hidden "Reading time:" prefix. When the title link receives keyboard focus, focus-within:ring-2 draws a clear ring around the whole card. Hover motion is turned off under prefers-reduced-motion with motion-reduce: variants.

Usage notes

Keep the relative class on .tbg-card, otherwise the stretched link covers the whole page.

Blog Post Grid at a glance

Framework
Tailwind CSS
Code
HTML
JavaScript
Only Tailwind CSS's own script
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Blog Sections
License
Free for personal and commercial use

Questions about this template

Can I use the Blog Post Grid code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Tailwind CSS's own JavaScript is used, and the download already includes it.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Blog Post Grid – free Tailwind CSS blog section template
Blog Post Grid · free Tailwind CSS blog section template

More Blog Sections

Travel Magazine Article Digest with Photos – free Pure CSS blog section template

Travel Magazine Article Digest with Photos

Travel magazine article digest in plain HTML and CSS with a cover photo, lead story, two-column photo articles, a feature block and a dark footer that stacks on mobile.

Featured Post with Sidebar List – free Bootstrap 5 blog section template

Featured Post with Sidebar List

Bootstrap 5 blog section with a large featured article card and a tabbed sidebar of recent and popular posts.

Blog Post List with Thumbnail Images – free Pure CSS blog section template

Blog Post List with Thumbnail Images

Compact pure CSS blog list with thumbnail images, category labels, clamped excerpts, dates and reading time, in one or two responsive columns.