Lesson 23. nth-child


#1


I'm stuck with the nth-child for the 3rd paragraph in body. I don't know what i'm doing wrong, this is the message I get when I click save & submit code. " Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined."

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<h3 class="fancy">Code Academy!</h>
		<p class="fancy">Im fancy</p>
		<p id="serious">Im serious</p>
		<p>Third paragraph</p>
	</body>
</html>

CSS↓

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


#2

take a close look at your h3 closing tag, it is a bit off


#3

Oh my god yes, thank you! I was starting to convince myself there was something wrong with the site lool, spent ages trying to work out what I did wrong lol