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 Create a Horizontal List of Links

Font-weight property for CSS

"Select the links inside the nav element. Add font weight 800 and padding top and bottom 15px and left and right 10px." How do I do this challenge which is in How To Make A website?

3 Answers

Hey Samuel,

To select the links inside a nav element, you start with the "nav", then "a" for the links since html links start with..

<a href = "www.linkexample.com ">

Your css page should look like this..

nav a  {


}

Now you can add the styling requested inside the brackets.

Hope that helps!

```nav a { font-weight: 800; padding: 15px 10px; }

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Samuel Jhan,

I understand you're having some issues with this particular code challenge, but the two answers given by other students should help. I checked them and they are correct.

Thanks