17. nth child


#1


https://www.codecademy.com/courses/web-beginner-en-WF0CF/3/4?curriculum_id=50579fb998b470000202dc8b


Oops, try again. Did you remember to make the second paragraph's font-family Tahoma?

I've tried to write it again but it didn't work. I can't see any mistakes in the code.


p:first-child {
    font-family: cursive;
}

p:nth-child(2) {
    font-family: Tahoma;
}

p:nth-child(3) {
    color: #CC0000;
}

p:nth-child(4) {
    background-color: #00FF00;
}

p:nth-child(5) {
    font-size: 22px;
}


#2

This passes for me. Could you post the full HTML and CSS code please?


#3

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title></title>
	</head>
	<body>
		<div>
			<p>I'm the first child!</p>
			<p>We're not.</p>
			<p>We're not.</p>
			<p>We're not.</p>
			<p>We're not.</p>
			<p>We're not.</p>
			<p>We're not.</p>			
		</div>
	</body>
</html>

CSS is above


#4

This code passes perfectly for me... I don't know what the problem is :confused:

Try using another browser for this exercise.


#5

OK. I manually installed Tahoma font on Ubuntu and it's working now.

Thank you for your answers :slight_smile:


#6