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 trialadina iulia
Courses Plus Student 187 PointsI m stuck can u help me?
please I m stuck tell me what to do i ve added the style but i can t go to next step 3, why?
10 Answers
Eivind Jonassen
5,994 PointsTry this then :)
<body>
<style>
body h1 {
color: green;
}
</style>
<h1>Nick Pettit</h1>
</body>
Maximiliane Quel
Courses Plus Student 55,489 PointsI looked at your challenge again. the problem has nothing to do with your selection but that the question was asking you to change the color to green and you wrote purple
therefore:
h1 { color: green; }
is specific enough inside or outside of treehouse
Maximiliane Quel
Courses Plus Student 55,489 Pointsin order for us to help you you need to copy the code that you are trying to put in and paste it here.
Maximiliane Quel
Courses Plus Student 55,489 Pointsit also helps if you repeat the question here and or state which exact challenge you are trying to solve so that we can follow along
adina iulia
Courses Plus Student 187 Points<style>
h1 { color: purple; {
</style> <h1>Adina Iulia</h1>
adina iulia
Courses Plus Student 187 Points<style>
h1 { color: purple; {
</style> <h1>Adina Iulia</h1>
so I ve done this but it keeps saying to add the style and I can t go to the next step...
Maximiliane Quel
Courses Plus Student 55,489 Pointsyou have a left instead of a right curely bracket ending you css rule
h1 { color: purple; }
adina iulia
Courses Plus Student 187 Points<style>
h1 { color: purple; }
</style> <h1>Adina Iulia</h1>
adina iulia
Courses Plus Student 187 PointsI have put like this but it s not working either
adina iulia
Courses Plus Student 187 PointsThank a lot! that helped!
Eivind Jonassen
5,994 PointsThats good to hear :) What it does is that it first tells it to target the body and then inside of body target the h1.
h1 { color: purple; }
If you wrote this in a project of your own (not a challenge here on treehouse) it would have given you the same result, because it basically targets all h1 elements on your page. At least thats what I think it does. Good luck onwards :)
adina iulia
Courses Plus Student 187 PointsThanks ! Got it now! good luck !