Skip to content

Hero with Photo Collage Grid

Bootstrap 5 hero section with a serif headline, call-to-action buttons and stats on the left and a five-photo collage grid with a floating card on the right.

Also known as: hero with image collage, photo grid hero section, travel landing hero, hero banner with photos

Hero with Photo Collage Grid live demo

Open in new tab

Bootstrap 5 code (HTML, CSS)

A Bootstrap 5 hero section with a large serif headline, two call-to-action buttons and a row of stats on the left, and a collage of five photos with a floating "next departure" card on the right. It suits travel brands, tour operators, photography workshops and any landing page that sells an experience through pictures.

How it works

The root is section.hc-hero. A Bootstrap row splits it into a col-lg-5 text column and a col-lg-7 collage column; below the lg breakpoint the collage moves under the text. The text column holds the .hc-eyebrow pill, the h1.hc-title with an accent-colored em, the .hc-lead paragraph, the .hc-btn--solid and .hc-btn--line buttons and the .hc-stats list.

The collage is a CSS grid, not Bootstrap columns. .hc-collage uses grid-template-areas, and each figure.hc-tile is placed with a modifier from .hc-tile--a to .hc-tile--e. On phones the grid has two columns and three rows; from 768px it switches to four columns and five rows of var(--hc-row), so the boat photo and the balloon photo become tall tiles while the other three stack on the right. Every image fills its tile with object-fit: cover. The first and last tiles get one large rounded corner for an organic shape, .hc-tag labels name two of the places, and the .hc-card is absolutely centered over the collage from the md breakpoint. No JavaScript is needed.

The photos come from Unsplash; replace them with your own images.

Customization

  • --hc-accent and --hc-accent-hover in .hc-hero: recolor the primary button, the italic part of the headline, the eyebrow dot and the card details.
  • --hc-bg and --hc-ink in .hc-hero: change the sand background and the dark teal text color.
  • --hc-row in .hc-hero: set the row height of the desktop collage; a larger value makes the whole collage taller.
  • --hc-gap and --hc-radius in .hc-hero: control the spacing between photos and the corner rounding of every tile.
  • grid-template-areas in .hc-collage inside the min-width: 768px media query: rearrange the letters to move or resize the tiles.
  • top: 60% in .hc-card: move the floating card up or down, or delete the .hc-card element to show only photos.

Use cases

  • Travel brands: a five-photo collage and a floating next departure card sell the destination at a glance
  • Tour operators: call-to-action buttons and stats sit beside pictures that show the experience
  • Photography workshops: a serif headline and image grid introduce the course on a landing page
  • Experience-based businesses: visitors see tall and wide photo tiles that stack neatly on phones

Accessibility

The section is labelled by #hc-title. Every photo has a descriptive alt text, width and height to prevent layout shift and decoding="async"; the first photo uses fetchpriority="high" and the lower ones loading="lazy". Icons are aria-hidden. The floating card has role="note" with a label, so it is announced as a side note. Buttons have a visible outline on :focus-visible, and the zoom-on-hover effect of .hc-tile img is turned off with prefers-reduced-motion: reduce.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. Keep each alt text in sync when you swap a photo.

Hero with Photo Collage Grid at a glance

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

Questions about this template

Can I use the Hero with Photo Collage 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 Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Bootstrap 5'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):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Hero with Photo Collage Grid – Bootstrap 5 hero sections component screenshot
Hero with Photo Collage Grid · Bootstrap 5 Hero Sections

More Hero Sections

Split Hero with Diagonal Photo Clip – Pure CSS hero sections preview

Split Hero with Diagonal Photo Clip

Pure CSS split hero with headline, buttons and stats beside a full-height photo cut on a diagonal with clip-path, plus an accent stripe and rating badge.

Hero with Rotating Words – Pure CSS hero sections preview

Hero with Rotating Words

Dark hero section whose headline cycles through words with a slide-and-fade animation, a pause button and decorative stat cards.

Split Hero with App Screenshot – Tailwind CSS hero sections preview

Split Hero with App Screenshot

Dark Tailwind CSS split hero with gradient headline, two CTA buttons and an animated mock app dashboard built entirely from divs.

Dark Gradient Hero – Bootstrap 6 hero sections preview

Dark Gradient Hero

Dark Bootstrap 6 hero with a blurred gradient mesh, gradient headline, glowing CTA, copyable install command, decorative orb with stats and a row of trust logos.

Split Hero with Stats – Bootstrap 6 hero sections preview

Split Hero with Stats

Bootstrap 6 split hero with a highlighted headline, CTAs and avatar social proof beside a bento grid of key stats with a 12-month / all-time toggle.

Hero with Search Bar – Bootstrap 6 hero sections preview

Hero with Search Bar

Bootstrap 6 directory hero on a photo background with a large pill search bar, a searchable area Combobox, popular search chips and category tiles.