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 trialAlejandro Udinov
727 PointsHow is header an parent element of floated .name & .main-nav elements ?
I dont' understand, how is <header> an parent element of floated .name & .main-nav elements, when infract they are contained in <div> .container ?? if at all div is the parent of these two elements ? so whats going on ?
1 Answer
Ivan Griessel
6,438 PointsMain-header is more like an ancestor than a direct parent of .name
and .main-nav
in this situation, as far as I understand. At the end of the video he does apply the clearfix to .container
and not to .main-header
.