From the course: Level Up: CSS Layout
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Equal-height columns - CSS Tutorial
From the course: Level Up: CSS Layout
Equal-height columns
(gaming music) - [Instructor] Whenever you need to place two or more items side-by-side in the layout, you typically want the height of each item in the layout to be the same, as you can see here. We call this type of layout an equal height column layout. In this challenge, you'll transform these three items which have three different lengths of content into an equal height column layout with maximum three columns. The columns should automatically wrap when there is insufficient horizontal space for all three columns, and the wrapped item should be either full width or equal width to the rest of the columns, your choice, to test the layout, change the viewport width, and ensure the wrapping works as intended. In the exercise files, you'll find a container with the class wrapper, and inside there are three child items with the class block. These contain different lengths of content. There's also some basic styling. This…
Contents
-
-
-
Center content horizontally and vertically2m 48s
-
(Locked)
Navigation menu alignment3m 35s
-
(Locked)
Grid with featured content4m
-
(Locked)
Equal-height columns3m 55s
-
(Locked)
Full-page and two-way split4m 4s
-
(Locked)
Holy grail layout7m 4s
-
(Locked)
Pull quotes7m 1s
-
(Locked)
Full-bleed sections7m 55s
-
(Locked)
Responsive card6m 34s
-
(Locked)
Multi-card layout6m 28s
-
(Locked)
Dynamic card5m 21s
-
(Locked)
Dynamic wrapping multi-card layout5m 8s
-
(Locked)
Dynamic grid gallery6m 2s
-
(Locked)
Paged layout6m 6s
-