Problem with 23. Pseudo selectors


#1

I don't know what is wrong with this code. It says "Oops, try again. Did you give your third paragraph a font-size of 26px? It looks like it's currently 16px."

So, how do I fix this?

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<h3 class="fancy">h3 header</h3>
		<p class="fancy">Stuff</p>
		<p id="serious">More stuff</p>
		<p>Pokémon</p>
	</body>
</html>


.fancy {
    font-family: cursive;
    color: violet;
}
#serious {
    font-family: Courier;
    color: #8C8C8C;
}
nth-child(4) {
    font-size: 26px;
}

#2

You're missing an important part: what nth-child ? Its the 4th of the body so:

body :nth-child(4){

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.