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 Customizing Colors and Fonts Resize Text

Miguel Angel Quintana
Miguel Angel Quintana
6,493 Points

[SOLVED] Navigation links arent being aligned to the center . please help.

so im following along with this video and ive tried everything possible and i cant seem to be able to make the navigation (nav) to align the text to the center . please help me out thank you!

Ps: it only works if it put it in the /nav for mobile/ section

        <nav>
        <ul>
          <li><a href="index.html" class="seleted">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
        </nav>

css

/******************************************************
NAVIGATION
******************************************************/
nav {
 text-align:center;
 padding:10px 0;
  margin:20px 0 0;
}

nav ul { 
  list-style:none;
  margin:0 10px;
  padding 0;
}

how it looks : http://i.imgur.com/fP3jmnD.png

how it suppose to look : http://i.imgur.com/AuswJzS.png

UPDATE: I HAVE FOUND THE ERRORS ! EVERYTHING IS WORKING FINE NOW :)