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 trialMarta Cook
3,432 PointsAdding Style to the Page Challenge
When I get to the last task in the challenge it tells me to change it to green and I do but it tells me I am wrong. I have tried getting it right and cannot figure it out. Please help me!
Marta Cook
3,432 PointsI passed the challenge now but I can't change the color on my workspace. I put in h1{color:green;}
I then look at a preview and it was still black.
3 Answers
Jonathan Perdomo
Python Development Techdegree Student 11,506 Pointscould you copy and past what your css looks like? it should look like this
<style>
h1 {
color: green;
}
</style>
Joseph Buchanan
5,496 PointsPost the question and your answer so we can see whats wrong.
Marta Cook
3,432 PointsI passed the challenge now but I can't change the color on my workspace. I put in <style> h1{color:green;} </style>
I then look at a preview and it was still black.
Elena Newton
39,588 Pointshi Marta,
in css, "color" controls the color of the text. if you want to change the color of the background (e.g. a fill color) then you would use
background-color:
good luck!
Adrian Clark
18,889 PointsIt's also important to remember that when doing coding challenges, you'll need to hit the "refresh" button while you're in the preview window. I don't think any new changes show up until that refresh button is hit.
Jonathan Perdomo
Python Development Techdegree Student 11,506 PointsJonathan Perdomo
Python Development Techdegree Student 11,506 Pointscould you copy and past what your css looks like? it should look like this