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 CSS: Cascading Style Sheets What is CSS?

Erin Clayton
Erin Clayton
3,840 Points

Footer not changing color?

Not sure what I am doing wrong?

Code: <!DOCTYPE html> <html> <head>

<meta charset="utf-8">
<title> Erin Clay// Facepainter </title>
<link rel= "stylesheet" href="css/normalize.css">
<style>
  footer{
       color:green;
  }
</style>

</head> <body> <header> <a href="index.html"> <h1>Erin Clay</h1> <h2>Face Painter</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">Contact.</a></li> </ul> </nav> </header> <section> <ul> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li>

  <li>
   <a href="img/numbers-02.jpg">
   <img src="img/numbers-02.jpg" alt="">
     <p>Playing with blending modes in Photoshop.</p>
   </a>
  </li>

  <li>
   <a href="img/numbers-06.jpg">
     <img src="img/numbers-06.jpg" alt="">
     <p> Trying 2 Create an 80's style of glows.</p>
   </a>
  </li>
  <li>
   <a href="img/numbers-09.jpg">
     <img src="img/numbers-09.jpg" alt="">
     <p>Drips created using Photoshop brushes.</p>
   </a>
  </li>

  <li>
   <a href="img/numbers-12.jpg">
     <img src="img/numbers-12.jpg" alt="">
     <p>Creating shapes using repitition.</p>
   </a>
  </li>
</ul>

</section> <footer> <p>Ā© 2015 Erin Clay.</p> </footer> <a href="http://twitter.com/palmettoowlz"><img src="img/twitter-wrap.png" alt="Twitter Logo"></a> <a href="http://facebook.com/awesomenezzshizz"><img src="img/facebook-wrap.png" alt="Facebook Logo"> </a>

</body> </html>

ryan95
ryan95
8,964 Points

Well, for one, you do not have a footer in your html. Try:

<footer>
  <p>&copy; 2015 Erin Clay.</p>
</footer>
Erin Clayton
Erin Clayton
3,840 Points

That's so weird.. how come I can see it but it doesn't show on here?? The CSS I'm typing in is not being applied either...

ryan95
ryan95
8,964 Points

Your CSS is selecting a footer element, and applying a green color to the text. In your HTML, you have not included a footer element, so there will be no change of text color. Unless I am not understanding your question? Your source code is a little messed up on my screen. (I am also assuming that you have included the head and body elements, as they do not appear in the source you posted. If you have not, then that will cause errors as well)

1 Answer

James Alker
James Alker
8,554 Points

You have a space between the "rel" attribute and its value on the stylesheet link element. That would be an issue. Remove it as below:

<link rel="stylesheet" href="css/normalize.css">