Oops, try again. Is your border color #6495ED?



I keep getting this error message: Oops, try again. Is your border color #6495ED?

These are the questions:

On the CSS tab, add a div selector and add property: value pairs of:

height: 50px
width: 120px
border-color: #6495ED
background-color: #BCD2EE.
Your border-style can be any type (dashed, solid, and so on) and you can use any border-width you want. (We like 2px.)

And this my code:

div {
height: 50px;
width: 120px;
border-color: #6495ED;
background-color: #BCD2EE;
border: solid;
border-width: 1px;

I hope that someone can help me because i don't know that to do anymore.



you did indeed add a border-color, but then you overwrote it with the border property. The problem here is that there are two proper ways to define a border, using the border property:

border: 4px dashed red;

and with the individual property's:

border-width: 4px;
border-style: dashed;
border-color: red;

since you only provided one value to border, it had to come up with 2 default values (including a color) which overwrote your border-color declaration two lines earlier. Use either of the two methods i described above, i prefer the first method (border property) because it is less code, but both methods (border property and individual property's) work fine


Thanks for the good explanation i fixed the problem because of you!


good to hear Captain_slow (you named your codecademy account after james may? nice) always good to hear that you also understand what went wrong, understanding will get you much further then just passing exercises