Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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%;
}