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

Cannot change color of text using CSS

Trying to change the color of some text using CSS but no matter what I do it will not happen. The HTML page is this; <!DOCTYPE html> <html> <head> <title>Andy Cooper's Resume</title> <link rel="stylesheet" href="resume.css"> </head> <body> <img src="http://placeimg.com/200/200/tech" alt="Andy Cooper, Web Developer"> <h1>Andy Cooper, Web Developer</h1> <h2>Summary of Qualifications</h2> <ul> <li>Experience as a freelance developer</li> <li>Experience with HTML, CSS and JavaScript</li> <li>Bachelor of Science, Economics</li> </ul> </body> </html>

The CSS is this;

h1 { color: blue; }

Any ideas? Again, I'm a newbie, only been doing HTML and CSS basics for just over a week! Cheers, Andy Cooper

3 Answers

Hi All, thanks to the help from the community here I think I can not post my problem correctly. I'm just working my way through the beginners part of HTML and CSS and I have come across and issue I just cannot seem to solve. I've completed the code in HTML and CSS exactly like the tutor has shwon in the videos, I've triple checked and I just cannot seem to find out what I'm doing wrong. I'm supposed to change the text colour in h1 from black to blue, here is the html code;

<!DOCTYPE html>
<html>
  <head>
    <title>Andy Cooper's Resume</title>
    <link rel="stylesheet" href="rootfolder/resume.css">
  </head>
  <body>
    <img src="http://placeimg.com/200/200/tech" alt="Andy Cooper, Web Developer">
    <h1>Andy Cooper, Web Developer</h1>
    <h2>Summary of Qualifications</h2>
    <ul>
        <li>Experience as a freelance developer</li>
        <li>Experience with HTML, CSS and JavaScript</li>
        <li>Bachelor of Science, Economics</li>
    </ul>
  </body>
</html>

And here is my CSS code

h1 {
  color: blue;
}

Any ideas what I'm doing wrong? Cheers

Hi folks, please ignore my last question, I copied and pasted HTML and CSS using Ctrl C and Ctrl V, it has not come out the same way as I pasted it, so it does not look as it should do in HTML and CSS. Sorry

Sorry, I've tried it without 'rootfolder' (in the HTML link) and it still will not work.