13.4 CSS Grid Layout
In the example you created in Section 13.2, it takes considerable effort to implement a more complex layout or redesign it. Of course, it’s also possible to do it this way, but you often can’t just move an element up, down, right, or left without a lot of effort.
For this purpose, grid layouts are the ideal solution. Whereas previously, you often created your own grid layout manually, CSS provides real design grids via CSS grid layouts, which you’ll get to know a bit better on the following pages. To avoid having to create a completely new project, we’re going to rewrite the known example from the previous sections for the grid layout. The complete example can be found in /examples/chapter013/13_4/css/layout.css; the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access