From the course: Responsive Layout
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Grid flow and implicit tracks - HTML Tutorial
From the course: Responsive Layout
Grid flow and implicit tracks
- [Instructor] We've seen how to set the width of columns and the height of rows when we define them, but it's also possible to set the size of implicit tracks that we don't define. We're starting out here with three columns and two rows that we've defined as being 1fr wide and tall. Remember that we can tell the difference between implicit and explicit rows and columns by using the dev tools and looking at the lines between them. The dashed lines between the first two rows show us where the explicit rows are, while the dotted lines between the last rows show us that those are implicit rows. The solid lines are around the grid. We can set the height for any implicit rows by using grid-auto-rows, that allows us to set a value of whatever height we want for all the implicit rows. For example, if we wanted to set all the implicit rows to be 70 pixels high, for the container element I would add a style of grid-auto-rows: 100 pixels and then save, go over here and refresh and now those…
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
-
-
-
-
-
Intro to CSS Grid2m 10s
-
(Locked)
Defining rows and columns3m 55s
-
(Locked)
Grid gap1m 52s
-
(Locked)
Sizing rows and columns5m 52s
-
(Locked)
Placing grid items5m 51s
-
(Locked)
Grid alignment overview1m 13s
-
(Locked)
Aligning tracks3m 46s
-
(Locked)
Aligning grid items within tracks2m
-
(Locked)
Aligning individual grid items1m 47s
-
(Locked)
Variable columns4m 45s
-
(Locked)
Grid template areas4m 12s
-
(Locked)
Naming grid lines2m 47s
-
(Locked)
Ordering grid items1m 16s
-
(Locked)
Grid flow and implicit tracks3m 55s
-
(Locked)
Challenge: The rainbow box1m 9s
-
(Locked)
Solution: The rainbow box6m 42s
-
-
-
-