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
troy beckett
12,035 Pointsproblem with nav bar.
Have a look at my website code on code pen below:
http://codepen.io/tbeckett24/pen/qIzJc
can anyone explain why the nav bar at the top is not all in one line. The contact page link is being falsed on the line below. I would like like it all on one line any ideas on what to do.
1 Answer
Caroline Hagan
12,612 PointsHi troy beckett Generally when using floats, it's best to apply a width. So In this instance the UL.nav is floating right, then the LI elements are floating left.. but floating left to what? If you apply a width on the UL, say 94% it will span the width of the column. What would be better is to apply the class .grid_8 omega to the actual UL; this will reduce the need for a DIV and extra CSS.