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 trialAshley Scott
6,426 PointsHelp!!
The question says It looks like we need a clearfix in the header. Give the main-header element the class we created for clearing floats. How do i do that?
2 Answers
Andrew Shook
31,709 Pointsif you look in the css file for the CC you will see this:
/* Float Clearfix
This this the css that is suppose to help fix issue that occur when floating elements on a page. FYI, they are almost always called clearfixes. What the challenge wants you to do is add the class used in the clear fix to the header html. If you look at the top of the CC code editor you will see a tab called index.html. Find the
<header>
and add the class to that.
Ashley Scott
6,426 PointsThank you