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

Having trouble displaying list items inside .footer-nav side by side with a float, how can i pass this omg.

/* Complete the challenge by writing CSS below */

.footer-nav li {

content: "";

display: inline-block;

clear: both;

float: left;

}

.logo {

float: right;

}

Can you post a copy of the full code or link to the code challenge so we can take a look?

You might just need to float in a different direction

2 Answers

Well I can't tell you what your problem is because I don't have the challenge or all of the code. However I can tell you that it's probably not aligning side by side because you are clearing both sides which doesn't allow floated items on either side of the element. For a more specific answer I'm going to need a more specific question with more information.

Happy coding!

Thank you for at least trying Dylan,

Happy coding!!

footer-nav li {

content: "";

display: inline-block;

clear: both;

float: left;

That was the right answer knowledge tirivanhu! thanks!