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

Need help..

What is wrong with this code? it's have a red line under the first word in every line.

can anyone tell me what I have doing wrong?

body   {
  background-color: #fff;
  color: #999;
}

header {
  background: #6ab47b;
  border-color: #599a68;
}


nav {
  background: #599a68;
}


h1, h2 {
  color: #fff;
}


a {
  color: #6ab47b;
}

nav a, nav a:visited {
  color: #fff;
}

Hello Kris.

I have formatted your question according to the forum guidelines (https://teamtreehouse.com/forum/posting-code-to-the-forum)

Have you pasted the full css? Can you please paste your html code too please?

Thanks Vittorio

Here is my html code:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Kris Larsen | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <header> <a heref="index.html" id="logo"> <h1>Kris Larsen</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html" class="selected">Portefølje</a></li> <li><a href="about.html">Om</a></li> <li><a href="contact.html">Kontakt</a></li> </ul> </nav> </header> <div id="wrapper"> <section> <ul id="gallery"> <li> <a href="img/number-01.jpg"> <img src="img/numbers-01.jpg" alt =""> <p>Eksperimenter med farve og tekstur.</p> </a> </li> <li> <a href="img/number-02.jpg"> <img src="img/numbers-02.jpg" alt =""> <p>Leger med blandingstilstande i Photoshop.</p> </a> </li> <li> <a href="img/number-06.jpg"> <img src="img/numbers-06.jpg" alt =""> <p>Forsøger at skabe en 80'er stil af gløder.</p> </a> </li> <li> <a href="img/number-09.jpg"> <img src="img/numbers-09.jpg" alt =""> <p>Drypper skabt ved hjælp af Photoshop pensler.</p> </a> </li>
<li> <a href="img/number-12.jpg"> <img src="img/numbers-12.jpg" alt =""> <p>Oprettelse af figurer ved hjælp gentagelse.</p> </a> </li>

  </ul>
</section>
<footer>
  <a href="http://twitter.com/"><img src="img/twitter-wrap.png" alt="Twitter Logo"  class="social-icon"></a>
  <a href="http://facebook.com/"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
  <p>&copy; 2016 Kris Larsen.</p>
</footer>
</div>

</body> </html>

1 Answer

Have you left a space before your code? It looks like it in the picture. If you have, you should delete that and it should fix the problem.