23."Pseudo Selectors" Stuck there with no reason (checked out other posts still no solution)


#1


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
		<h3 class="fancy">polla<h3>
		<p class="fancy">asasas</p>
		<p id="serious">asasas</p>
		<p>SKUUUU!!!!!!!!</p>
	</body>
</html>

/*Add your CSS below!*/

.fancy {
    font-family: cursive;
    color: violet;
}

#serious {
    font-family: Courier;
    color: #8c8c8c
}

p:nth-child(4) {
    font-size: 26px;
}

It does only work when I use:

p:nth-child(3) {
font-size: 26px;
}

But still doesn't work tho


#2

your h3 closing tag is missing the forward slash, messing up the count of nth-child


#3

thanks dude!!!!!!!!!!!!!!!!!!!!!!


#4

I assume this means you got it working? :slight_smile:


#5

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