From the course: CSS: Advanced Layouts with Grid

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a complex magazine-style grid

Create a complex magazine-style grid - CSS Tutorial

From the course: CSS: Advanced Layouts with Grid

Start my 1-month free trial

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…

Contents