← All elements
<div class="bdg"><div class="a"><small>Revenue</small><b>$18.4k</b></div><div class="b"><small>Orders</small><b>312</b></div><div class="c"><small>Visitors</small><b>9.1k</b></div><div class="d"><small>Goal</small><span></span></div></div>About this layout
A bento style grid of stat tiles in mixed sizes, arranged with named grid areas that are easy to rearrange.
How it works
The layout is defined with named grid areas: one large tile on the left, two small tiles stacked on the right and a wide goal bar underneath. Changing the template string rearranges everything. The progress bar is a single gradient with a hard stop at the completed percentage.
Ways to customise it
- Edit the grid-template areas to swap tiles.
- Change the 72% stop in the goal bar.
- Change the purple gradient on the main tile.
Good to know
Keep the source order sensible, because screen readers follow it and not the visual arrangement. Give the goal bar a text value if the number matters.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.