From the course: CSS for Programmers
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Layout and positioning - CSS Tutorial
From the course: CSS for Programmers
Layout and positioning
- [Instructor] Layout and positioning are notorious struggles in CSS. And I think they are a major contributor to why people often consider CSS to be weird or hard or even broken. But here's the thing, these issues are largely historical. For the most part, CSS layouts are now straightforward and easy to implement thanks to modern CSS modules. The problem is CSS mythology, habitual practices and many older tutorials don't cover these newer modules. So even though the problems are solved, people think they're still there. So, let's wipe this slate entirely clean and start over, looking at all the new stuff you can do in CSS layouts. For this purpose, I've created four examples for you in the exercise files for this movie 0203. They are flow, flex, grid, and position. And you can go in and play around with the code for each of them. They are archetypal examples that make it easy to experiment and see how the different pieces…