CSS Grid
Definition
A CSS layout model for two-dimensional layouts with rows and columns. Grid gives precise control over placement and sizing of elements. More powerful than Flexbox for complex page layouts.
Code Example
Css
Learn More
Related Terms
Flexbox
A CSS layout model for one-dimensional arrangements (row or column). Flexbox distributes space among items and handles alignment, even when sizes are dynamic. Set display: flex on the container and control children with properties like justify-content, align-items, and flex-grow.
Responsive DesignAn approach to web design that makes pages look good on all screen sizes. Responsive design uses fluid grids, flexible images, and CSS media queries to adapt layouts from mobile to desktop.