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 trialLiban Galal
246 PointsStyling
<style>
h1 { color: blue; }
</style> <h1>Liban Galal</h1>
what is that iam missing here?
Liban Galal
246 PointsYes, Iam typing exactly as he is typing?
<style>
h1 { color: blue; }
</style> <h1>Liban Galal</h1>
vickiecomrie
3,248 PointsThat selector in your stylesheet should produce a heading of size h1 and text color of blue. What is the problem--is it not displaying? Do you have this declaration in a linked stylesheet or in an embedded stylesheet? (in the header of your document you could put <style> h1 {color: blue;} </style)
1 Answer
Ken Alger
Treehouse TeacherLiban;
Welcome to Treehouse!
A couple of things. First make sure that your h1
selector is inside your style
tags, like so:
<style>
h1 {}
</style>
Also, for the code challenge, at least when I took it, you need to have the color of the h1 element set to green.
Post back if you are still stuck and happy coding!
Ken
Matteo Cirami
8,906 PointsMatteo Cirami
8,906 PointsWhat's happening? Do you have that enclosed in <style> tags?