This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Glenn L. Webb
over 10 years

Keep getting error message that font size for 3rd paragraph is undefined

.fancy {font-family: cursive; color: violet;} #serious {font-family: Courier; color: #8c8c8c;} p:nth-child(4) {font-size: 26px;}

Answer 521a067d548c3592350025e2

0 votes

Permalink

I keep getting this error as well. Even though it is working fine. I can see due to the preview. So frustrating I cannot finish this course cause of this bug.

points
Submitted by Tyler Sydenham
over 10 years

Answer 521a10ab548c35b08d0027e4

0 votes

Permalink

Can you print your HTML sheet also so i can take a look at that. It looks ok from a CSS point of view but i need to check the HTML page to make sure it’s linked correctly.

points
over 10 years

Answer 521ba697abf8219f9f000984

0 votes

Permalink

Here is the accompanying html sheet: No doubt that I am doing something wrong, just not spotting it.

alt text

points
Submitted by Glenn L. Webb
over 10 years

1 comments

Ok, so from looking at your HTML document. I can see that it should all be working correctly, apart from 1 alteration i would make. The p tag with the class of fancy doesnt seem to be closed properly. You need to make sure you close a P tag out correctly with

it looks as though your missing out the >.

Could this be the problem?

Answer 521c7091abf82162b1000de3

0 votes

Permalink

http://gyazo.com/ea217a9653963ac475b4a6efb0ac986e.png http://gyazo.com/6a0503fcc59c64451af8447b94704326.png

Just make sure you view the whole image as you can see the HTML and CSS are correct in what the instruction were.

points
Submitted by Tyler Sydenham
over 10 years

3 comments

You need to change the nth child to (4). That should work for you mate.

Glenn L. Webb over 10 years

Thanks for the help. I did make those changes but no joy. However, when I moved the

above the

, it worked fine. My guess is a glitch in the code checker.

Raahul Jaykar over 10 years
  • { color:#00E5EE; } Div{

    color: #CC0000; border:2px;

} Full Screen Save & Submit Code Reset Code Way to go! Start Next Lesson Share with Friends Oops, try again! Did you remember to set the color of the paragraphs inside divs to #CC0000

please help me i got this screen