[reported #34] 7. font-size: 2rem; fails despite being correct


#1

This problem has been reported to the people who can help.

URL: Exercise 7. font-size

How to reproduce

  1. submit correct answer for checkpoints 1 and 2
  2. submit correct answer for checkpoint 3

    p {
      font-size: 2rem;
    }

Expected Result: checkpoint passes
Observed Result: checkpoint fails despite user's correct code

Workaround

  • try resetting your browser's zoom to default, ctrl 0 (PC), cmd 0 (Mac)
  • try a different web browser

Using this works for some people:

    p {
      font-size: 36px;
    }

#2

Hello,

I kept typing codes below to add font-size of 2rem for the p selector:
p {
font-size: 2rem;
}

But the site just show me error message like this, please help. Thanks!


#3

Could you paste in all of your CSS code maybe there's a break in one of the other elements thus it won't run


#4

My code: Thanks!

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1 {
font-size: 32px;
font-family: Palatino, 'Palatino Linotype', serif;
color: rgb(218,190,206);
}

h2 {
font-size: 56px;
}

.hero {
padding: 250px 0;
margin: 30px;
}

p {
font-size: 2rem;
}

.hero a {
color: #00FFAA;
font-size: 24px;
text-decoration: none;
font-size: 1.5em;
}


#5

Whats the 0 for ? remove it and run your code


#6

I just removed it but it didn't work...sigh. Thanks.


#7

Check if your browsers zoom is at 100%


#8

Yeah it is. (I'm in Taiwan so the language showed is Chinese and my browser is Chrome.)


#9

So odd, please try on another browser or maybe reset the code and add in the p styling again .. Possibly a glitch


#10

Thanks, zainabrawat.
I reported it to the site. Hope they'll solve it for me.


#11

I am dealing with the exact same issue!!!! very frustrating....would really like to finish this lesson!!


#12

Definitely an issue. I'm also getting stuck at the same spot. It's not user error.


#13

Hi,

Somebody in other thread said we can try to add p {"font-size: 32px;} instead of the code.

I tried and it works.


#14

Thanks! I tried the "32px" too and it worked. Codeacademy needs to fix this. It's been wrong for at least 4 days. It's slowed my progress down.


#15

p {
font-size: 2rem;
}

This is the code I have entered, and it is still saying incorrect.


#16

could you paste in all of your code from CSS


#17

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1 {
font-size: 32px;
font-family: Palatino, 'Palatino Linotype', serif;
color: rgb(218,190,206);
}

h2 {
font-size: 56px;
}

.hero {
padding: 250px 0;
margin: 30px;
}

p {
font-size:2rem;
}

.hero a {
color: #00FFAA;
font-size: 24px;
text-decoration: none;
font-size: 1.5em;
}


#18

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1 {
font-size: 32px;
font-family: Palatino, 'Palatino Linotype', serif;
color: rgb(218,190,206);
}

h2 {
font-size: 56px;
}

.hero {
padding: 250px 0;
margin: 30px;
}

p {
font-size: 2rem;
}

.hero a {
color: #00FFAA;
font-size: 24px;
text-decoration: none;
font-size: 1.5em;
}


#19

Whats the 0 for ?

If removed code should work


#20

Still not working. I have not changed the padding on this lesson.