Css selectors 4 Whats wrong?


#1
 <!DOCTYPE html>
<html>
<head>
	<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
	<title>Strut Your Stuff!</title>
</head>
<body>
	<p>I'm about to become a lovely shade of teal.</p>
	<p>Me, too!</p>
	<p>I think I'll do the same.</p>
	<div>
		<p>We're going to become a truly striking scarlet!</p>
		<p>I was thinking more vermillion.</p>
		<p>No, crimson!</p>
	</div>
</body>

p{
color: #00E5EE;
}
div p{
color: #CC0000;
}
*{
border: 3px dashed;
color: #3a5fcd
}

Error message is Oops, try again. Did you remember to add a border of color #3A5FCD around every element?


#2

What's the error you're encountering?

Right now the only thing I see is you need to add a semi-colon " ; " after "color: #3a5fcd" in your " * " tag.


#3

I'm having the same problem?
Oops, try again. Did you remember to set the color of the paragraphs outside divs to #00E5EE?


#4

@lolman, color: #3a5fcd is the last property, a semi-colon is not required (i would still put a semi-colon for constancy and to reduce mistakes(

@theman25, there are two proper ways to declare border, with the border property or the individual property's:

border: 2px dashed red;

or individual property:

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

color will also color the border, but also the text. The exercise requires you to use either border or border-color, color itself isn't good enough


#5

I'm sorry, I just don't see what I'm doing wrong here?

/*Add your CSS below!*/
p {
font-family: #00E5EE;
}
div p {
font-family: #CC0000;
}
* {
border: 2px solid #3A5FCD;
}


#6

you use font-family as property, and then give it a color value, if you give it a color value, i recommend you use the color property as well


#7

Thanks for your keen observation Stetim, it's been a long day. Really appreciate the help!


#8

Thank you so much. I can finally move on


#10