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 trialJosh Cypher
4,954 PointsUL will not horizontally center
I cannot get the Nav UL to horizontally center on the page. Please help!
2 Answers
Josh Cypher
4,954 PointsAha. While this is correct, and I understand it, it turns out there was 40 px of padding under <ul> of my normalize.css file. Looks like the copy treehouse provided on the video was bad :(
Jeremy Germenis
29,854 PointsApply these two properties to an unordered list to make the list items center:
ul { text-align: center; }
ul li { display: inline-block; }
Josh Cypher
4,954 PointsJosh Cypher
4,954 Pointsindex.html
main.css