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 CSS Layout Techniques Float Layout Float Layout Challenge

Challenge Broken - CSS Layout Techniques - > Float Layout Challenge - > Task 1

The task is to float main-logo and .main-nav left.

and the following does not work:

.main-logo, .main-nav{ float: left; }

3 Answers

Hi Gordon,

It wants you to float the .main-nav list items left. Not main-nav itself.

.main-nav li {
  float: left;

I can't believe I missed that... that's what I get for not reading the whole sentence :)

Thanx Jason

Thank you Jason,

I think the wording for the problem is very confusing. I didnt realize that the li should only be on the .main-nav item.