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

Heather Mathewson
Heather Mathewson
10,912 Points

My contact page looks like my portfolio page instead of my about page when I transferred over the code.

In stage 7 I started the video, made a contact.html folder, copy/pasted the about page, and modified the nav class from the about to the contact. But when I refresh my page and click contact, it shows as my portfolio page (which if I remember correctly means it isn't connecting to ANY page and therefore defaults to the portfolio page).

I currently dont want to continue because than any further edits I make I wont be able to see the results of and be able to tweak correctly if I make a mistake later on.

Here is the nav code that I changed, following along with Nick.

<nav> <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> </nav>

4 Answers

Heather Mathewson
Heather Mathewson
10,912 Points

It got figured out! I had made the file called Contact.html when it needed to be contact.html. That didn't fix the problem until afterwards, when I went to my index.html, messed with the header to see what was being affected and so on. Once I changed the index.html, it picked up my rename of the contact.html file. I think sometimes it doesn't notice the file's been renamed until I make a change somewhere else and hit save.

Robyn Goodwin
PLUS
Robyn Goodwin
Courses Plus Student 10,009 Points

Can you post your code or a screenshot? If you don't know how, Look on the right side of the forum page and cick on the part that says, Tips for asking questions section and it'll help you get that down.

Heather Mathewson
Heather Mathewson
10,912 Points

Sorry--I tried copy/paste the first time and didn't notice it didnt post. Thank you.

<nav>
           <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>
        </nav>