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
nate slaughter
1,975 Pointscontact link taking me back to portfolio
I copied the code verbatim from my about me page and added the selected class to the contact.html list item, yet when i view the site and click on the contact menu item it takes me to the portfolio page, any ideas as to why?
ps what's the best way to I add my code to this comment?
7 Answers
Vrund Patel
11,994 PointsCan you copy and paste the whole code in contact.html(refer to Markdown Cheatsheet at the bottom of comment box) , if possible i might be able to help you.
Tommy Gebru
30,164 PointsHey Nate,
The best way to comment is to follow some of the instructions found in the link (Markdown Cheatsheet) found underneath the textarea or comment box like Vrund Patel says.
Here is a another reference Markdown with Posts.
More specifically to post within the comment box to display code.
You want to type this out (`) three times above and below your code, make sure to hit enter and separate your code from the body of your comment.
Like this!
Juan Aviles
12,795 PointsDid you copy just the nav section or the entire page? If you copied the entire "about" page into the "contact" page, then the contact page will look just like the about page until you make changes to its content.
Tommy Gebru
30,164 PointsHey Nate, Did you find everything ok?
nate slaughter
1,975 PointsHere is the code from contact.html
(')(')(')
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nate Slaughter | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Lobster|Oswald' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Nate Slaughter</h1> <h2>Designer</h2> </a> <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> </header> <div id="wrapper"> <section> <img src="img/nick.jpg" alt"Photo" class="profile-photo"> <h3>About</h3> <p>Hi my name is Nate Slaughter, I'm a designer</p> <p>Follow me on twitter <a href="http://www.twitter.com/natedeezymusic".>@natedeezymusic.</a></p> </section> <footer> <a href="http://twitter.com/natedeezymusic"><img src="img/twitter-wrap.png" alt="twitter logo" class="social-icon"></a> <a href="http://facebook.com/natedeezymusic"><img src="img/facebook-wrap.png" alt="facebook logo" class="social-icon"></a> <p>© 2014 Nate Slaughter.</p> </footer> </div> </body> </html>
(')(')(')
nate slaughter
1,975 Points<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nate Slaughter | Designer</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='http://fonts.googleapis.com/css?family=Lobster|Oswald' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Nate Slaughter</h1>
<h2>Designer</h2>
</a>
<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>
</header>
<div id="wrapper">
<section>
<img src="img/nick.jpg" alt"Photo" class="profile-photo">
<h3>About</h3>
<p>Hi my name is Nate Slaughter, I'm a designer</p>
<p>Follow me on twitter <a href="http://www.twitter.com/natedeezymusic".>@natedeezymusic.</a></p>
</section>
<footer>
<a href="http://twitter.com/natedeezymusic"><img src="img/twitter-wrap.png" alt="twitter logo" class="social-icon"></a>
<a href="http://facebook.com/natedeezymusic"><img src="img/facebook-wrap.png" alt="facebook logo" class="social-icon"></a>
<p>© 2014 Nate Slaughter.</p>
</footer>
</div>
</body>
</html>
' ' '
nate slaughter
1,975 PointsActually when I posted it in here i noticed I was missing the = in the alt="photo" and it's working now. Sorry for waisting your time!! Thanks for the quick help, you guys are amazing!
Tommy Gebru
30,164 PointsMistakes are plenty when writing code, keep up the good work Nate.