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 Pointsadvice on site navigation?
Please take a look at my code pen below:
http://codepen.io/tbeckett24/pen/LEbOze
My question is with the navigation. I want the navigation to be completely centered.
If my wrapper is 1200px and all margin and padding is removed , and i have six navigation parts why cant i set each width to 200px and keep them on the same line.
What is yellow space between each ul li. I have all margin and padding removed?
Any help would be appreciated as these are the little things I'd like to understand completely so I can master css. My aim is to get the whole nav centered with even spaces in every ul li
troy beckett
12,035 Pointsthank you I knew I forgot something
1 Answer
Edmon Quiocho
Courses Plus Student 1,408 PointsHi Troy,
Check this CSS
.wrapper {
margin: 0 auto; background: pink; }
h1{ text-align: center; }
ul li a { text-decoration: none; color: black; }
ul li { list-style: none; }
.nav-wrapper {
max-width:100%; background: yellow;
}
ul li { display: inline-block; width: 205px; background: green; text-align: center; }
uvwitpmluq
14,915 Pointsuvwitpmluq
14,915 PointsHi, troy beckett. I think you need to add