Learn grid and grid-template-areas FIRST!!!

If you're starting to learn web design, you will see hundreds of tutorials about floats clear-fix and positioning and other infinitely painful details on how to actually get HTML and CSS to lay things out in seemingly normal and obvious ways.

You'll probably have to learn some of that. But don't learn it first!

Instead, read this https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Grids

And then read this https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas
and a longer tutorial here https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Grid_Template_Areas

Then lay out your web pages as if layout was something we were actually allowed to do.

(And then go back and learn some of the painful stuff later. Or if enough time has passed, maybe you won't have to.)

Comments

Popular posts from this blog

Callback, Promise, Observable, and Doughnuts

The Day TDD Started Working for Me