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

JavaScript

Responsive Slider Plugin - CSS Code Challenge 1/2

Hi, I've tried with:

$(".wmuSliderPagination a") .css("background-color", "black");
$(".wmuSliderPagination a.Active").css("background-color", "blue");

but the result is:

Bummer! Use 'background: black;' and 'background: blue;' respectively

4 Answers

Looks like you are using inline styles?

If so, try using the style.css provided to you in the challenge. Then add "background: whatever color" to the proper selectors.

Thanks David but I don't understand. How can I apply the style to the selector? between the style element? Could you give some example?

Your style.css file should look like this for the following selectors

.wmuSliderPagination a {
display: block;
text-indent: -9999px;
width: 10px;
height: 10px;
background: black;
}

.wmuSliderPagination a.wmuActive {
background: blue;
}

Thanks David! I understand now. It Seems like I was a bit confused :)