From the course: CSS: Advanced Layouts with Grid
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Create a complex magazine-style grid - CSS Tutorial
From the course: CSS: Advanced Layouts with Grid
Create a complex magazine-style grid
- [Instructor] To wrap up this chapter, we'll take everything we've covered so far in this course and smash it all together into one page. What I want to do here is create an advanced grid-based card layout that displays different cards and different sizes and displays the content in the best possible way across all screen widths. What you have in the exercise files for this movie is the starting point for this layout, so on smaller screens, you'll see a full bleed image with some text underneath. There's a slight hover effect behind the text and that also works for focus. Then, as we scale up the width of the screen, this full bleed image and everything centers on the screen and we get this outline around the box when we hover our focus over it. This is an actual outline, it's not a border, so we're using the outline property for it. That way, nothing is moving around when it kicks in and out. And then if I keep widening the viewport, nothing happens. What I want to do here is create…
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)
The challenge48s
-
(Locked)
Overview of text-based card markup2m 10s
-
(Locked)
Create a grid for each card2m 21s
-
(Locked)
Position items on the grid4m 20s
-
(Locked)
Place the cards on a grid5m 17s
-
(Locked)
Overview of image-based card markup2m 21s
-
(Locked)
Using the grid to stack grid items2m 18s
-
(Locked)
Change the appearance of cards with flex5m 43s
-
(Locked)
Create different-sized grid items2m 10s
-
(Locked)
Create a complex magazine-style grid8m 43s
-
(Locked)
-
-
-