Bootstrap 5 Bento Grid
A Bento Grid is a layout of rectangular tiles of different sizes, arranged like the compartments of a bento box, where each tile holds one self-contained idea such as a feature, a stat or a screenshot. Bootstrap 5 has no dedicated bento class, so you build it from the 12-column grid (.row, .col-*), gutter utilities (.g-3) and equal-height cards (.h-100). Use it for feature overviews, product landing pages and dashboards where several points need equal visual weight without a long vertical scroll.
Bootstrap class
.row .g-3 .col-lg-8 .col-lg-4 .card .h-100Common use cases
- A SaaS landing page features section where analytics, integrations, security and pricing each get a tile sized by importance.
- A portfolio homepage mixing case-study screenshots, a short bio tile, a client logo tile and a contact call to action.
- A mobile app marketing page showing app screens in tall tiles next to short tiles for ratings, download counts and platform badges.
- A restaurant or hotel page combining a large hero photo tile with smaller tiles for opening hours, location map, menu highlights and booking.
Variants and classes
| Variant | Description and classes |
|---|---|
| Asymmetric 8/4 rows | Alternates a wide tile with a narrow tile, then flips the pattern on the next row for the classic bento rhythm..row .g-3 .col-lg-8 .col-lg-4 |
| Equal three-column tiles | A uniform grid of same-width tiles, useful as a calmer, more structured bento..row .row-cols-1 .row-cols-md-3 .g-3 |
| Hero tile with stacked side tiles | One large tile sits beside a column of two smaller tiles, created by nesting a row inside a column..col-lg-6 .row .g-3 .col-12 .h-100 |
| CSS Grid bento | Uses Bootstrap's display and gap utilities with a small custom grid-template for true row spanning..d-grid .gap-3 |
| Image background tile | A tile with a photo or screenshot behind overlaid text, built with the card overlay classes..card .h-100 .text-bg-dark .card-img .card-img-overlay |
Code example
<section class="py-5">
<div class="container">
<div class="row g-3">
<div class="col-lg-8">
<div class="card h-100 border-0 rounded-4 text-bg-primary p-4">
<div class="card-body d-flex flex-column justify-content-end">
<h3 class="card-title">Real-time analytics</h3>
<p class="card-text mb-0">Track visits, signups and revenue on one live dashboard.</p>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card h-100 border-0 rounded-4 bg-light p-4">
<div class="card-body">
<p class="display-5 fw-bold mb-1">99.9%</p>
<p class="card-text text-muted mb-0">Uptime over the last 12 months</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="card h-100 border-0 rounded-4 bg-light p-4">
<div class="card-body">
<h4 class="card-title">120+ integrations</h4>
<p class="card-text mb-0">Connect Slack, Stripe, HubSpot and more in a few clicks.</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-8">
<div class="card h-100 border-0 rounded-4 text-bg-dark p-4">
<div class="card-body">
<h4 class="card-title">Enterprise-grade security</h4>
<p class="card-text mb-0">SSO, audit logs and role-based access control on every plan.</p>
</div>
</div>
</div>
</div>
</div>
</section>Live examples
Basic Bento Grid
Canvas template variants
Canvas Builder builds pages on the Canvas HTML template, which adds its own styled versions of Bootstrap 5 components. Variants you can ask for in a prompt:
- Canvas Builder applies your brand colours to tile backgrounds, using one dominant accent tile and neutral light tiles so the grid has a clear focal point.
- Tiles use generous padding (.p-4), soft rounded corners (.rounded-4) and subtle borders or shadows so the grid feels modern without custom CSS.
- Tile spans collapse in a predictable order: full-width stacked tiles on mobile, two-up on tablets, and the full asymmetric bento layout from the lg breakpoint.
Best practices
Always add .h-100 to the card
Columns in a row stretch to equal height, but the card inside does not unless you add .h-100. Without it, tiles in the same row end at different heights and the bento shape breaks.
Make column widths add up to 12 per row
Pairs like 8 + 4 or 4 + 8 fill each row cleanly. If a row sums to more than 12, the extra column wraps to a new line and leaves a gap.
Use .g-3 instead of margins on tiles
Gutter classes keep spacing consistent on both axes and avoid the double-margin problems you get from adding .mb-* to individual columns.
Plan the mobile order separately
Use .order-* with breakpoint variants such as .order-lg-1 so the most important tile appears first on small screens while the desktop layout stays intact.
Limit to five or six tiles per grid
More tiles dilute the hierarchy that makes a bento layout work. Give the most important message the largest tile and keep the rest short: one heading and one line of text.