Error in making new CSS rule


#1

I'm not sure why errors occur after implementing the new CSS rule in the code. Could someone explain to me what I'm missing?

Instructions:

Make a new CSS rule that selects the a element inside

..

Set the color to #00b0ff

My code:
.learn-more {
color: #00boff;
}

Error msg: Oops, try again. Set the color of the a elements inside

..
to #00b0ff

#2

Maybe you need .learn-more a {...}? What lesson is it?


#3

I'm in Lesson; unit 3: Style your elements. Use CSS to change backgrounds, add borders, and control spacing.


#4

Yes, I have this code inside.

.learn-more a {
  color: #00b0ff;
}

If you have to do this

  1. Make a new CSS rule that selects the a element inside <div class="learn-more"></div>
  2. Set the color to #00b0ff

Then given code is your solution. It will select only a elements inside your element with class learn-more.