Welcome to the Treehouse Community
Looking to learn something new?
Agustin Hernandez2,747 Points
Question About Floats
If I understand correctly the height of the header collapse because the .main-nav and .name were taken out of the normal document flow when using floats so the header acts as if there was no content there right?
Steven Parker215,984 Points
Yes, that's right. A common way to compensate for this is with the use of a "clearfix", which adds a CSS pseudo-element to the end of the container with the "clear" property to ensure the floats are contained.
This concept will be covered in the next video.