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 How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

Centered Nav Elements

Everything concerning the Nav elements and their rules in my CSS and the Nick's (The video host) appears to be the same, yet when I load my page, my Nav links aren't centered like they're supposed to be. Any idea what I've missed?

2 Answers

Matt Campbell
Matt Campbell
9,767 Points

Could be anything. Get a link to the site and a link to a codepen with your code. Can't help if we can't see what code you've written.

Check for this below at a guess, but like Matthew says hard to say without the code.

ul li a:link{
    text-align: center;
}