Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Building a Navigation Bar with Flexbox 7:32
- Creating a Two Column Layout with Flexbox 2:36
- Creating a Three Column Layout with Flexbox 5:24
- Aligning Items to the Bottom of a Column 4:13
- Creating a Sticky Footer with Flexbox 4:58
- Building a Layout with Flexbox 5 questions
- Flexbox Columns Challenge 2 objectives

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
A common problem web designers and developers face when building layouts is figuring out how to align elements with the bottom edge of a container, regardless of the amount of content inside the container.
Video review
- An element can be both a flex item and a flex container.
- A
margin
value ofauto
affects flex item alignment because it absorbs any extra space around a flex item and pushes other flex items into different positions.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Samuel Kleos
Front End Web Development Techdegree Student 13,728 Points1 Answer
-
Phoebe Tyson
7,504 PointsColumns display on top of each other instead of next to each other?
Posted by Phoebe TysonPhoebe Tyson
7,504 Points2 Answers
-
Preeti Thakur
17,158 Points1 Answer
-
Jasper Kop
10,423 Points2 Answers
-
Alexei Thomas
2,492 Points1 Answer
-
Truong Minh Nguyen
12,587 Points1 Answer
-
Leo Marco Corpuz
18,975 Points1 Answer
-
yoav green
8,611 Pointswhy did the self-align moved on the y axis and not the x axis?
Posted by yoav greenyoav green
8,611 Points2 Answers
-
PLUS
Ramesh Kunwar
Courses Plus Student 4,066 Points1 Answer
-
anamayfield
4,080 Points2 Answers
-
Jong Kim
6,145 Pointshow come margin-top: auto; makes item to the bottom? i just don't understand...
Posted by Jong KimJong Kim
6,145 Points2 Answers
-
Amanda Richwalski
3,956 Points1 Answer
-
gene c
13,630 PointsWhy are the columns side-by-side even though I wrote flex-direction: column?
Posted by gene cgene c
13,630 Points1 Answer
-
gene c
13,630 PointsWhy does margin-top: auto place the item at the bottom of the container?
Posted by gene cgene c
13,630 Points1 Answer
-
Charmine Amplayo
6,668 Points1 Answer
-
Learning Coding
7,134 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up