23 pseudo selector need help


#1

Hello, I got the same problem, now I check it up and don't find any wrong.

Here's my code html

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Resultado</title>
	</head>
	<body>
		<!--Agregá tu HTML a continuación.-->
	<h3 class="elegante">Crea un encabezado H3, que mas??</h3>
	<p class="elegante">Y tambińe un parrafo p, entonces??</p>
	<p id="serio">Este es otro parrafo pero serio!!!</p>
	<p>Este es el tercer parrafo</p>
	</body>
</html>

I can't find any error, and the problem about the font-size should 26 px appears always.

So, I decided to do something.

Here is my code CSS

/*Agregá tu CSS a continuación*/
.elegante{
    font-family: Cursive;
    color: violet;
    }

#serio{
    font-family: Courier;
    color:#8c8c8c;
    font-size: 26px;
    }
    
/*p{
    font-size:26px;
    }*/ 
    
body:nth-child(4){
    
    font-size: 26px;
    
    }

As you can see, there is an extra code between comments /* */ where the p element have a font-size: 26px;

If I remove the comments the problem is fixed y you can going on with the next lesson.


Problem at 23.Pseudo selectors (Review)
#2

You need a space between body and :nth-child(4), to select the 4th element inside body, if you don't have this space, it will check if the 4th element is body, which it is not. It is a paragraph


#3

Thank you, very much!!!:slightly_smiling: