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 trial

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 91,253 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.