From the course: CSS: Combining Grid and Flexbox
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Picture gallery - CSS Tutorial
From the course: CSS: Combining Grid and Flexbox
Picture gallery
- [Instructor] I really love this next feature of CSS Grid. We not only have the ability to create a seamless, responsive picture grid with elements that are different sizes, but we can now accomplish this with just a few lines of CSS. No need to use JavaScript. And the great additional feature is that it's completely responsive. As I resize my page, my photo gallery picture grid is just going to reformat and you can see as I scroll through the images, the spaces are being filled. This is an amazing feature. Let me show you how easy this is to do. This is what the starting file currently looks like. You can see that I have a series of images and they are going to display if possible side by side, and that's only because they're inline images. So if there's enough space, they will appear next to each other. But the grid itself is not very well formatted. Let's look at the HTML and CSS. Here's the HTML for this section.…
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)
Overview of the project2m 41s
-
(Locked)
Webpage header with hero section8m 30s
-
(Locked)
Create a hamburger menu for mobile7m 12s
-
(Locked)
Create a horizontal menu for desktops7m 52s
-
(Locked)
Web cards, part 15m 56s
-
(Locked)
Web cards, part 26m 56s
-
(Locked)
CTA summaries3m 29s
-
(Locked)
Team section for mobile8m 19s
-
(Locked)
Team section for desktops3m 44s
-
(Locked)
Problem section5m 24s
-
(Locked)
Media objects for mobile6m 59s
-
(Locked)
Media objects for desktop4m 48s
-
(Locked)
Picture gallery9m 45s
-
(Locked)
Footer for large screen7m 5s
-
(Locked)
Footer for extra large screens6m 4s
-
(Locked)
-
-
-