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 Adding Pages to a Website Build the Contact Page

Contact Page looks like Portfolio page, the Portfolio page seems to be still active

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sylvia Jung | Artist</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,800,700italic|Ubuntu:400,700,400italic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Sylvia Jung</h1> <h2>Artist</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li>
<li><a href="index.html" class="selected">Contact</a></li> </ul> </nav> </header> <div id="wrapper">

this is the upper part of my code. When I click on contact the link turns green, but Portfolio also stays green, probably overriding it?

Brenna Leker
Brenna Leker
7,596 Points

Hi Sylvia, You need to change your last <li> hyperlink to "contact.html" instead of "index.html" <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li>
<li><a href="contact.html" class="selected">Contact</a></li> </ul>

I hope this solves your problem :) Brenna

2 Answers

I know, Ting, thank you!