Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Layout Basics Page Layout with the Float Property The Float Challenge Solution

Guil mentions that we learned the vertical alignment property, which video did he teach us that??

I'm going through the CSS Layout Basics module and up until this challenge, I don't recall which video Guil taught us the vertical alignment property. He talks about how using the display property over the float property should be used when you want control with center and vertical alignments. Does the center alignment also mean text-align: center ?

Asanka Pathirana
Asanka Pathirana
2,295 Points

hey Kirtz,

he talks about Float in this track https://teamtreehouse.com/library/css-basics check tab 5 onwards for floats.

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 90,825 Points

I don't think we've used the vertical-align property yet in this course but it's mentioned to reinforce the fact it is used with display: inline-block; property to ensure an elements contents are alsigned to the top of the content area.

It may have slipped the net in this course where he intended to talk about it earlier.

From the teachers notes however to reiterate.

  • Use inline-block to lay out navigation items side by side or create a simple two-column layout
  • Use inline-block when you need control over center and vertical alignment

It seems that this whole Front End Web Dev track is not in order. This is probably my third time seeing a concept where it's either being asked to be used in a coding challenge but wasn't taught or mentioned, or it's a concept being used in a solution but wasn't even taught. It's like none of the staff here goes through the courses that is being published.