Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.