From the course: CSS: Variables and Fluid Layouts
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Make the layout formula even more flexible - CSS Tutorial
From the course: CSS: Variables and Fluid Layouts
Make the layout formula even more flexible
- [Instructor] All right, so we've laid out our whole webpage using the cool little formula that we've got going on here. But I've just added onto this another piece of HTML. You know how clients are. They come back to you and they want to lay yet something else out. And so what's going on here now is I've added to this the very top of our HTML, always look at that first, at the very top of our HTML, I have a note from the client that says we want to have one image across here at mobile, this is going to be an image gallery, and then we're going to have it go two images across at the tablet dimension and three images across at a desktop dimension. So we have our row declared here. We have our div with a class of col four because this is going to occupy the full width of the screen, but inside of that, we have an unordered list with individual list items. There's six of them, six doesn't go anywhere near the four that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Mark up a simple four-column grid system6m 48s
-
(Locked)
Create a starting CSS for the grid system7m 1s
-
(Locked)
Add media queries to your grid system11m 39s
-
(Locked)
Rewrite CSS to integrate calc() and custom properties7m 53s
-
(Locked)
Rewrite CSS to integrate gaps between grid cells4m 35s
-
(Locked)
Make the layout formula even more flexible9m 26s
-
(Locked)
Challenge: Media query integration1m 24s
-
(Locked)
Solution: Media query integration1m 59s
-
(Locked)
-
-