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

troy beckett
troy beckett
12,035 Points

help with website nav bar

I have posted my codepen below please take a look:

http://codepen.io/tbeckett24/pen/avKEA

My problem is this:

What I want to achieve is the logo to take up 40% width the nav section to take up 60%. but then I want each item in the nav section to be centered and take up lets say 10% of the nav section space each.

How do I achieve this.

2 Answers

Troy,

This'll do it.

http://codepen.io/anon/pen/AsjtJ

good luck :-)

what about giving each nav li a padding-right of 10%;

nav ul li {
  display: inline-block;
  padding-right:10%;
}