Skip to content

Magazine Blog Layout with Featured Photo

Magazine-style Tailwind CSS blog section with a large featured photo story and a column of smaller posts with thumbnails.

Also known as: magazine blog layout, featured post blog section, news homepage layout, editorial blog grid, cover story blog section

Magazine Blog Layout with Featured Photo live demo

Open in new tab

Tailwind CSS code (HTML)

A magazine-style blog section built with Tailwind CSS: one large featured story with a wide photo and a column of four smaller posts with square thumbnails. It suits news sites, travel and food blogs, or any homepage that needs to highlight a cover story above the latest articles.

How it works

The root is section.tmf-magazine with a warm paper background (bg-[#f5f0e6]). A header with an issue line, a serif h2 title and an "All stories" link sits on a thick border-b-2 rule, which gives the print-magazine feel.

Below it, a grid switches to two columns from the lg breakpoint with lg:grid-cols-[1.65fr_1fr]. The left column is article.tmf-featured: a 16:9 img with object-cover, a red category tag, a large serif headline, an excerpt and a byline with a time element. The right column stacks four article.tmf-side items separated by divide-y; each has a category label, a serif title, the date and reading time, and a square thumbnail on the right.

Every card is fully clickable without extra JavaScript: the heading link carries after:absolute after:inset-0, so its pseudo-element stretches over the relative article. Hovering a card underlines the title through group-hover:underline, and the featured photo zooms slightly with group-hover:scale-105. No script or custom CSS is needed.

The photos come from Unsplash and are placeholders; replace them with your own article images.

Customization

  • lg:grid-cols-[1.65fr_1fr] on the main grid: give the featured story more or less width than the side column.
  • aspect-[16/9] on the featured img: use aspect-[4/3] for a taller cover photo or aspect-[21/9] for a cinematic strip.
  • bg-red-700, text-red-700 and decoration-red-700: swap red for emerald or indigo to change the accent color of tags and underlines.
  • font-serif on the headings: replace it with font-sans for a more modern editorial look.
  • h-20 w-20 sm:h-24 sm:w-24 on the side thumbnails: enlarge or shrink the small images, or move the img before the text block to put thumbnails on the left.
  • Add or remove article.tmf-side items; the divide-y borders adjust automatically.

Use cases

  • News sites: one large cover story sits above a column of four smaller latest articles
  • Travel blogs: a wide destination photo leads the section while thumbnail posts list recent trips
  • Food and lifestyle blogs: the featured recipe gets a large photo with excerpt and byline
  • Blog homepages: highlight a cover story with a category tag and an All stories link
  • Online magazines: serif headlines and a thick rule give a print-style look to the front page

Accessibility

The section is labelled by its heading through aria-labelledby. Each story is an article with a real heading, and the single link per card keeps the tab order short. Focus moves to the stretched link and shows an outline around the whole card via focus-visible:after:outline-2. Every image has descriptive alt text, width and height to prevent layout shift, and the side thumbnails use loading="lazy" while the cover photo loads immediately. The hover zoom is turned off with motion-reduce:transition-none, and red and stone text colors keep sufficient contrast on the paper background.

Usage notes

The layout needs only the Tailwind browser build. Several sections can live on one page; change the tmf-title id in each copy.

Magazine Blog Layout with Featured Photo 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 Magazine Blog Layout with Featured Photo 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.

Magazine Blog Layout with Featured Photo – Tailwind CSS blog sections component screenshot
Magazine Blog Layout with Featured Photo · Tailwind CSS Blog Sections

More Blog Sections

Featured Post with Sidebar List – Bootstrap 5 blog sections preview

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 – Pure CSS blog sections preview

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.

Travel Magazine Article Digest with Photos – Pure CSS blog sections preview

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.

Blog Post Grid – Tailwind CSS blog sections preview

Blog Post Grid

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