Lesson 23 Need Help


#1

For some reason my last post diappeared sooo im postings another one.

MY HTML code:

f<!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">I AM A HEADER</h3>
		 <p class="fancy"> I AM A PARAGRAPH</p>
		 <p id="serious">I AM A VERY SERIOUS PARAGRAPH</p>
		 <p> idid </p>
	</body>
</html>

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;
    
    
}

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


#2

Wait... there's only one body, so how do you put the 4 body as font-size 26px?!

So, @zrk03, the problem is that you put the word body. As you may know, there's only one. :smile:

You have to do p, not body! :laughing:

Also, I suggest you look at your <!DOCTYPE html>....


#3

Changing the f at the <!DOCTYPE html> It was hiding ! thanks!


#4

issue resolved?

@ragezapper, body :nth-child(4) should also work, given the fact you have a space between body and :nth-child(4), it will select the 4th element inside body


#5

Yea issue is resolved :smile: