CSS CSS Layout Basics Page Layout with the Float Property The Float Challenge Solution

john knight
PRO
john knight
Pro Student 9,155 Points

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?

john knight
john knight
Pro Student 9,155 Points

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.

john knight
john knight
Pro Student 9,155 Points

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