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 Type Selectors

Victor Gordian
Victor Gordian
4,656 Points

Doesn't let me pass

Finally, create a new type selector that targets the div element. Add a background-color property and set the value to lightblue.

so i put

<style> div { background-color: lightblue; } </style>

doesn't let me pass

2 Answers

Sue Dough
Sue Dough
35,800 Points

Try this

div { background: lightblue; }
Victor Gordian
Victor Gordian
4,656 Points

i kept doing that type of selector and it said to use a new one, therefore i did but didn't work

Sue Dough
Sue Dough
35,800 Points

It works man. Just copy and paste it. You had background-color and all you need is background.

Joe Rizza
Joe Rizza
8,513 Points

Yes, I too found background and background-color were not always interchangeable during challenges.