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

HTML How to Make a Website Adding Pages to a Website Add a New Page

Maria Katayama
PLUS
Maria Katayama
Courses Plus Student 462 Points

When I hover over the categories (Portfolio, About, Contact), it does not change colors the way it does for Nick.

Maria Katayama
Maria Katayama
Courses Plus Student 462 Points

I'm still confused as to where I put this? I've been searching in my CSS file for "nav a" and found three hits. The first one is "nav a {" with "font-weight" and "padding" underneath. The next one is "nav a, nav a: visited {" and the last one is "nav a. selected {". Am I supposed to just add the word "hover" after "nav a"?

5 Answers

Michael Hulet
Michael Hulet
47,913 Points

You haven't specified a :hover pseudoclass for that to work. Add this somewhere to your CSS:

nav a:hover {
 color: #32673f; 
}

you'll want to use the hover state for your links:

nav a:hover { color: color-value; }

Michael beat me to it :P

Eliot Murton
Eliot Murton
7,315 Points

I seem to be only a few videos further along than Maria and am having trouble. I wonder if you guys can help as well.

I am following the tutorial for how to add a new page to a website. The "About" page that Maria was referring to. As instructed in the video, I start by creating a new file called “about.html”. Copied the code from index.html (home page) over to the new page. In the nav of the (index.html), I changed the selected class to the About list item, etc.

I then white the paragraph exactly as instructed. When I review the work in the Workspace, the paragraphs I now write in the "About" page are all white so can only be seen if I highlight the area. Why is this? I can not figure this out. I am sure I have done everything as instructed in the video but still get no success.

Eliot, could you provide us a link to see?