This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

327 points
50bd0f31ebc672ba46001129_479349507
Submitted by
Meredith Hayes
over 4 years ago

Anyone else having trouble getting 2.2 to verify with px?

Hi there,
I'm having trouble getting section 2.2 to verify. I went ahead and did the rest of the course (except for two other sections that are giving me a similar problem), so I'm preeeetty sure I'm doing it right, but it just won't give me an "ok."
I'm putting this in my stylesheet:

p {
color: green;
font-family: Garamond;
font-size: 24px;
}

But it keeps giving me this error:

Oops, try again.
It looks like your paragraph's font-size is undefined instead of 24px.

What am I doing wrong here?


0 votes

permalink

I had the same problem. I think the culprit is the wrong index.html. I've just copied the index.html from exercise 1 and that solved the problem.

790 points
01b1ebb8cb3e88c47537646aa7e1d584?s=140&d=retro
Submitted by
AndiPersti_50b0698d8d1104480200284b_
over 4 years ago

7 Comments

116755010447f90e0be852a0bd47439e?s=140&d=retro jjluff9991 over 4 years ago

what? i dont understand your answer because i am also stuck on this section

505859996dda5e0002036cad_167999427 ocean smith over 4 years ago

you've got 790 points you shouldn't be stuck on that

Picture Džana Mucević over 4 years ago

Oops, try again.
It looks like your paragraph's font-size isn't 24px. If you're having trouble, try resetting your zoom with Ctrl-0 or Cmd-0!
^It gives me this error, even after a zoom reset. What am I doing wrong? (I tried Ctrl+0, nothing happened)

56e6702814f3ef6f2a0003c4_908847599 Negus about 4 years ago

mine says "Oops, try again! It looks like your paragraph's font-size isn't 24px. If you're having trouble, try resetting your zoom with Ctrl-0 or Cmd-0!"

56e6702814f3ef6f2a0003c4_908847599 Negus about 4 years ago

sorry...got it...i mispelled "fon-size:" ...I mean "font-size",

57655c2c14f3eff0660000d8_909214998 Samuel over 3 years ago

mebbe try to reload your browser, coz it worked perfectly for me

A2efb882b2123bffde87792cfecaf843?s=140&d=retro ethtanwutt almost 2 years ago

make sure there is no space in between the number 24 and the px


0 votes

permalink

Here is my answer for the stylesheet.css:

p {
font-family: Garamond;
color:green;
font-size: 24px;
}

378 points
57655c2c14f3eff0660000d8_909214998
Submitted by
Samuel
over 3 years ago

1 Comment

57655c2c14f3eff0660000d8_909214998 Samuel over 3 years ago

I am not sure why you are getting this problem


-1 votes

permalink

I think your meant to add a semi-colon after color:green and font-family:Garamond

196 points
52e03a8080ff33b1a6000176_442014211
Submitted by
srishti
over 3 years ago