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 Basics Page Layout with the Float Property The Float Challenge Solution

I Couldn't find a way through this challenge.

In objective 2 it says "position the li inside the .footer-nav elements side by side using floats" I tried laying it using floats with these values, is there another way through objective 2? and if the answer were a hint it would be more nicer than giving me the full answer.

Nadia Masiero
Nadia Masiero
3,468 Points

Hia John, Could you paste your code... so I could see what you have already?

Here is the code, Nadia:

'''css .footer-nav{ float:left; } .logo{ float:right; }

.clearfix::after { content: ""; display: table; clear: both; }'''

2 Answers

Julien Rotundo
Julien Rotundo
10,018 Points

'''css .footer-nav{ float:left; } .logo{ float:right; }

Your code is floating .footer-nav. To float the li INSIDE that, how would you write the css selector? Trying to give a hint without the answer.

Couldn't find the way, Can you give me the answer?.

Julien Rotundo
Julien Rotundo
10,018 Points

This worked for me:

.clearfix::after { content: “”; display: table; clear: both; }

.footer-nav { float: left; }

.footer-nav li { float: left; }

.logo { float: right; }

Screenshot: https://www.dropbox.com/s/5pwehrlpb00canx/Screenshot%202017-09-12%2007.44.21.png?dl=0

Thank you very much, Julien.