WEB DESIGN TRENDS / 02 OF 20
CSS Grid & Flexbox
Grid arranges content across two dimensions while Flexbox distributes items along one axis. Combining them creates layouts that adapt without forcing every section into the same shape.
DESCRIPTION & USE
How the trend works
Grid arranges content across two dimensions while Flexbox distributes items along one axis. Combining them creates layouts that adapt without forcing every section into the same shape.
Where to use it
Use Grid for page regions, dashboards, and card collections; use Flexbox for toolbars, navigation, and aligning items inside each component.
Bootstrap's responsive row and column system is built with Flexbox. CSS Grid remains a useful complement for named areas and dense, two-dimensional layouts.
Useful classes.container, .row, .col-*, .d-flex, .flex-wrap, .justify-content-between, .gap-*FROM THE ATTACHED HTML
The original example
A PRACTICAL EXTENSION
One more way to use it
Set the regions
Named areas keep the overall dashboard structure easy to understand.
Align a toolbar
Let controls wrap when a narrow container has less room.