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 trial

CSS

Float Layout

please help me , i can't do this challenge "It looks like we need a clearfix in the header. Give the main-header element the class we created for clearing floats."

/* Complete the challenge by writing CSS below */

/* Float Styles ================================ */ .main-logo, .main-nav li { float: left; }

/* Float Clearfix ================================ */ .group:after { content: " "; display: table; clear: both; }

*http://teamtreehouse.com/library/css-layout-techniques/float-layout/float-layout-challenge

2 Answers

So first off what you have to figure out is what is the name of the clearfix class is. (hint: its in your css file under float clearfix)

Next you have to apply that to the div with the class main-header

<div class="main-header _____">

thanks you helped me out at least,