23. Pseudo Selectors


This code always gives me the error when i run this code

Oops, try again.
Did you give your third paragraph a font-size of 26px? It looks like it's currently undefined.

As i've had bug problems before i assumed it was a bug and used different browsers but it still gives me that error.

When i do body :nth-child(3) the paragraph becomes larger whereas on other threads i've seen people say it is meant to be body :nth-child(4)

My CSS Code
/*Add your CSS below!*/

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

#serious {
    font-family: Courier;
    color: #8C8C8C;

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

My HTML Code
<!DOCTYPE html>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<!--Add your HTML below!-->
		<h3 class="fancy"> Well it just goes to show how easy it is to be <h3>
		<p class="fancy"> B a m b o o z l e d a g a i n </p>
		<p id="serious"> This is serious text </p>
		<p> r i c k h a r r i s o n </p>


you didn't close your h3 tag. missed /

<h3> </h3>


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