Nth-child Pseudo Selectors


#1

what's wrong?


#2
<body>
    <h3 class="fancy"> Mira <h3>
    <p class="fancy"> Mirjana </p>
    <p id="serious"> Miki </p>
    <p>Mirjana Lakovic</p>
	
</body>

#3

Hi instead of p:nth... try to do body:nth..


#4

p:nth-child also works, or body :nth-child, but then you need a space to select the 4th element inside body.


#5

i have the same problem :-??.what can i do?


#6

Create a new topic with your html code + error message + question so someone can help you


#7

it's ok now thanks,i fixed the problem.