Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJames Barrett
13,253 PointsWhy does the second column naturally align to the bottom?
I understand that using the CSS property vertical-align: top ensures the div to align to the top. However why does it naturally align to the bottom in the first place?
Thanks, James.
1 Answer
Jennifer Nordell
Treehouse TeacherHi! It's because the default initial value for vertical-align is baseline
. Which puts it at the bottom. You can find the MDN documentation here:
https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align
Happy coding!
James Barrett
13,253 PointsJames Barrett
13,253 PointsThanks!