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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![troy beckett](https://secure.gravatar.com/avatar/a6a66a7ee3cc2d7edea288c41dad002b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
troy beckett
12,035 Pointshelp 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
![lovell](https://secure.gravatar.com/avatar/fd316ce1275a3a44f1f3d5c95b236ea9?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
lovell
7,882 Points![Andreas cormack](https://uploads.teamtreehouse.com/production/profile-photos/98061/micro_mypic.jpg)
Andreas cormack
Python Web Development Techdegree Graduate 33,011 Pointswhat about giving each nav li a padding-right of 10%;
nav ul li {
display: inline-block;
padding-right:10%;
}