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 CSS Basics (2014) Basic Selectors Class Selectors

When i change my header to a class selector it doesnt recognize it and just leaves that space blank

html: <header id="top" class:"main-header"> css: .main-header { background-color: orange; }

1 Answer

Julia Beckwith
Julia Beckwith
2,526 Points

It helps if you format your post using markdown (see the Markdown Cheatsheet at the bottom of this page)- but I think your problem is that the class should have an equals sign after it, not a colon....

html: <header id="top" class="main-header"

Thank for the answers and the markdown tip;)