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 trialrom farhi
Front End Web Development Techdegree Student 8,551 Pointshi, in the first question of the video you need to apply a float but after he didnt clear it why?
Apply a float to <li> tags inside <nav>. Make sure the floats follow the HTML source order.
i dont understand why a clear was nor done after
hope you can help, thanks in advance rom
1 Answer
Martha Brown
4,380 Pointsnav when floated takes on characteristics of a block element thereby has its own line so it does not need to be cleared.
The following 'h2' element also has its own line as a block element so does not interfere/overlap with with #nav.