Web design styles - clean and structured
Bento grid web design
A bento grid lays content out in tiles of different sizes on a strict grid, like the compartments of a Japanese lunch box. One large tile leads and smaller ones support it. Apple’s product pages made the layout popular, and it’s now everywhere, from portfolios to SaaS feature sections. With CSS grid it takes only a few lines.
A live example
This sample page is built with this page’s own CSS. Switch to the common mistake to see what happens when tiles have fixed heights and the order is rearranged with CSS.
Spring trips
Plan your next weekend away
Pick a city, choose your dates and we’ll put the whole trip in one place.
Stays
Hotels and flats near where you’ll be. Pick by area, price or how close you are to the station.
Find a stayDone well: rows grow to fit their content, the lead tile comes first in the HTML as well as on screen, and the grid drops to one column on phones in the same order.
What makes it a bento grid
A strict grid
Every tile snaps to the same columns and rows, with the same gap between them.
display: gridMixed tile sizes
Some tiles span two columns or two rows, which creates the hierarchy.
grid-column: span 2One tile leads
A single large tile holds the main message and the rest support it.
grid-row: span 2Rounded, contained tiles
Large corner radii and a distinct fill or colour for each tile.
border-radius: 28pxThe CSS
This is the grid behind the example. Rows grow with their content rather than having fixed heights, and the tiles collapse to one column on phones in the order they appear in the HTML.
.bento {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-auto-rows: minmax(160px, auto); /* grows with content, never clips */
gap: 16px;
}
.tile {
border-radius: 28px;
padding: 24px;
background: #ffffff;
}
.tile--lead { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
/* Two columns on tablets */
@media (max-width: 900px) {
.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* One column on phones, in source order */
@media (max-width: 600px) {
.bento { grid-template-columns: 1fr; }
.tile--lead,
.tile--wide { grid-column: auto; grid-row: auto; }
}Tuning the values
| Property | A good starting range | What goes wrong outside it |
|---|---|---|
| Columns | 3 to 4 on desktop | Two columns feels like a plain list. Six or more and tiles get too small to hold real content. |
gap | 12px to 24px | Too tight and tiles merge. Too wide and the grid stops reading as one block. |
grid-auto-rows | minmax(160px, auto) | A fixed height cuts off text as soon as the client’s copy is longer than the placeholder. |
| Large tiles | 1 or 2 per grid | With several big tiles there’s no lead, and the hierarchy disappears. |
When it works
- Feature overviews, where each tile shows one benefit or product detail.
- Portfolios and personal sites that mix images, stats and short text.
- Dashboards and summary pages with a few headline numbers.
When to avoid it
- Long-form content, which needs a single reading column.
- Content of very uneven length, which leaves some tiles stuffed and others empty.
- Content where the order really matters, such as steps in a process.
Responsive layouts
Bento grids on a phone
On desktop people take in a bento grid all at once. On a phone it becomes a single column, and the order of the tiles suddenly matters. The column follows the order of the HTML, not the arrangement you designed, so the tile that looked first may end up fifth.
Write the HTML in reading order
Put the lead tile first in the source and let the grid place it. That way the phone layout, screen readers and keyboard users all get the same order.
Avoid the order property
Rearranging tiles with
orderorgrid-rownumbers makes the visual order differ from the reading order.Be careful with dense packing
grid-auto-flow: densefills gaps by moving tiles out of order. It looks neat and reads in a confusing sequence.Design the tablet layout too
Two columns is where awkward gaps appear. Check it as its own layout rather than as a squashed desktop.
What to check when you review a bento grid site
Bento grids look perfect with placeholder content. These checks are about what happens when real copy, real images and real phones arrive.
.bento1. Reading order on a phone
Narrow the page to one column and read from top to bottom. The most important tile should still come first.
.tile2. Text cut off at the bottom
Paste in the client’s real copy. Tiles with fixed heights quietly hide the end of a sentence.
.tile img3. Image crops
Images set to cover their tile get cropped differently at each size. Check faces and products at every breakpoint.
a.tile4. Clickable tiles
If the whole tile is a link, check it has one clear focus state and doesn’t contain another link inside it.
@media (max-width: 900px)5. The tablet layout
Two-column layouts often leave a gap or one stretched tile. Check at around 768px wide.
.tile--lead6. A clear lead
If several tiles are the same size and weight, nothing leads. Ask what the client wants people to see first.
.tile p7. Contrast on coloured tiles
Each tile has its own fill, so check text contrast tile by tile, not once for the page.
.bento { gap }8. Gaps that don’t match
Mixed margins and gaps make the grid look broken. Check the spacing is the same between every tile.
Reviewing with clients
Notes on the exact tile that’s out of order
Problems with a bento grid usually only show up at one size, on one device, so a client’s "the layout looks off" leaves you with a lot of questions to ask. With ClickNote, clients click directly on elements of the website and leave a note, without creating an account or installing a browser extension.
Send your client a review link for the page.
They click the tile that’s wrong and say what they expected to see.
You get the selector, a screenshot and their device, so you can go straight to the right rule in your CSS.
On my phone the end of this sentence is cut off.
mobile · Chrome on Android - 412 x 915
.d-card.c2 > .d-textReviewing a site in one of these styles?
Send your client a review link and they can click directly on elements of the website and leave a note, without creating an account or installing a browser extension. You get the selector, a screenshot and their device with every note.
14-day free trial. No card needed. See pricing.