Skip to content

Alternating Feature Rows

Bootstrap 5 feature section with image and text rows that alternate sides on desktop, with icons, checklists, highlight chips and offset image shapes.

Also known as: alternating image text rows, zigzag feature section, left right feature layout, image and text sections

Alternating Feature Rows live demo

Open in new tab

Bootstrap 5 code (HTML, CSS)

A Bootstrap 5 feature section with image and text rows that alternate sides: image left on the first row, right on the second, left again on the third. Each row has an icon, heading, short paragraph, checklist and a "learn more" link. It is a common pattern for SaaS landing pages, product tours and service overviews.

How it works

The root section.fa-features holds a centered .fa-head intro and three article.fa-row elements. Each row is a Bootstrap row with align-items-center and two col-lg-6 columns: one with the figure.fa-media image and one with the text.

The alternation is done with Bootstrap order utilities, not duplicate markup. In .fa-row--reverse the image column has order-lg-2 and the text column order-lg-1, so from the lg breakpoint the image moves to the right. Below lg both columns are full width and every row reads image first, then text, which keeps the order consistent on phones. The source order stays the same, so screen readers and keyboard users get a logical reading order.

Each .fa-media has a ::before pseudo-element: a light blue rounded block offset behind the image. In reverse rows the offset is mirrored so the shape always points outward. A white .fa-chip pill in the corner highlights one benefit. Rows are spaced by --fa-row-gap, which grows on large screens. No JavaScript is needed.

Customization

  • --fa-accent and --fa-accent-soft in .fa-features: change the color of the kicker, icons, check marks, chip icons and links.
  • --fa-shape in .fa-features: set the color of the offset block behind each image, or set it to transparent to hide it.
  • --fa-radius in .fa-features: round or square the image corners and the offset block together.
  • --fa-row-gap in .fa-features: change the vertical space between rows (4rem on mobile, 6rem from lg).
  • Add fa-row--reverse and the order-lg-2 / order-lg-1 classes to any row to flip its image to the right.
  • aspect-ratio: 3 / 2 in .fa-media img: use 4 / 3 or 1 / 1 for taller screenshots.
  • Remove the .fa-chip figcaption from a row if you do not need a highlight badge.

Use cases

  • SaaS landing pages: image and text rows alternate sides to walk visitors through the main features
  • Product tours: each row pairs a screenshot with an icon, heading, short paragraph and checklist
  • Service overview pages: a learn more link at the end of each row leads to the detailed page
  • Mobile layouts: rows stack with the image first, keeping the reading order consistent on phones

Accessibility

The section is labelled by its h2 through aria-labelledby, and each feature has an h3, so the heading outline stays correct. Every image has a descriptive alt. Decorative icons and the offset shape are hidden from assistive technology with aria-hidden="true" or a pseudo-element. The "learn more" links include visually hidden text so they are unique out of context, and they show a clear :focus-visible outline. The arrow nudge on hover is disabled with prefers-reduced-motion: reduce. Visual order changes only on large screens; DOM order always matches reading order.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. Replace the placehold.co images with your own screenshots at the same 3:2 ratio and update the alt text. Add or remove article.fa-row blocks freely.

Alternating Feature Rows 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
Feature Sections
License
Free for personal and commercial use

Questions about this template

Can I use the Alternating Feature Rows 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">
Alternating Feature Rows – free Bootstrap 5 feature section template
Alternating Feature Rows · free Bootstrap 5 feature section template

More Feature Sections

Feature Cards with Hover Glow – free Pure CSS feature section template

Feature Cards with Hover Glow

Dark pure CSS feature grid whose card borders and backgrounds light up with a colored glow that follows the mouse pointer.

Feature Grid with Icons – free Tailwind CSS feature section template

Feature Grid with Icons

Responsive Tailwind CSS feature section with six features, inline SVG icons, hairline dividers and a subtle hover accent.

Bento Grid Feature Section – free Tailwind CSS feature section template

Bento Grid Feature Section

Asymmetric Tailwind CSS bento grid feature section with large, wide, tall and small tiles, inline SVG chart and mini illustrations.

How It Works Section with Three Steps – free WordPress feature section template

How It Works Section with Three Steps

Gutenberg how it works section with three numbered steps, a connecting divider line, short step descriptions and a centered call to action button.

Alternating Image and Text Feature Rows – free WordPress feature section template

Alternating Image and Text Feature Rows

Gutenberg feature section with three alternating image and text rows, each with eyebrow, heading, checklist and button, styled for a design studio.