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 trialjohn knight
Courses Plus Student 9,155 PointsI 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.
john knight
Courses Plus Student 9,155 PointsHere is the code, Nadia:
'''css .footer-nav{ float:left; } .logo{ float:right; }
.clearfix::after { content: ""; display: table; clear: both; }'''
2 Answers
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
Courses Plus Student 9,155 PointsCouldn't find the way, Can you give me the answer?.
Julien Rotundo
10,018 PointsThis 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
john knight
Courses Plus Student 9,155 PointsThank you very much, Julien.
Nadia Masiero
3,468 PointsNadia Masiero
3,468 PointsHia John, Could you paste your code... so I could see what you have already?