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 trialNataly Mota
1,426 PointsWhat was the purpose of floating the header, towards the beginning of this lesson? I don't see what the "float" did!
I understand that float allows other elements "to float" next to the element being "floated" as opposed to stacking down bellow it, or where they would have otherwise have been, and I understand that float can be used to make multiple columns of content, but I don't understand what "floating" the header did, in this case. Could you explain the purpose of the "float" code in the header element, in the beginning of this lesson?
Nataly Mota
1,426 PointsThank you!
Nataly Mota
Dave Lawlor
2,732 PointsDave Lawlor
2,732 PointsHi Nataly
From the audio this is what Nick says about floating the header....
" Floating to the left does not have any practical use right now but it will later on when we style our desktop layout - so stay tuned for that."
So it looks as though the float will be utilised later.
DaveL