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

CSS: An Overview Forum

View Course » View Exercise

465 points
50f6c336daaaf687ec0044dc_750870836
Submitted by
Joanna
over 4 years ago

What's wrong with my code? [answered]

My code in exercise 3.4 (A font of knowledge) looks like this:

/*Add your CSS below!*/
    h1  {
        font-family: serif;
    }

    h2  {
        font-family: sans-serif;
    }

    h3  {
        font-family: cursive;
    }

The result I'm getting is

"Oops, try again. Did you remember to set your header font-family to serif?".

As far as I can see, I am setting the header font-family to serif. The header does have a serif font. So what's wrong?


0 votes

permalink

You might want to try capitalising the first letter of the font families, the progression requirement might be case sensitive (even though the code is case insensitive for most systems)

806 points
Picture
Submitted by
Jack Bolton
over 4 years ago

1 Comment

50f6c336daaaf687ec0044dc_750870836 Joanna over 4 years ago

Hi, thank you bit it wasn't it. I've finally found a solution, however - I submitted exactly the same thing from a different browser and it worked!


0 votes

permalink

In Opera Browser is error. Use FireFox.

203 points
587b6d9ddd1eded163000497_10685010
Submitted by
Otto Kupradze
about 4 years ago


0 votes

permalink

I have the same question

362 points
5459a6777c82ca30330024c4_266740425
Submitted by
Joshua Redding
over 2 years ago


-1 votes

permalink

h1 {
font-family: Times, serif;
}
h2 {
font-family: Verdana, sans-serif;
}
h3 {
font-family: Vivaldi, Cursive;
}

113 points
Picture
Submitted by
Chaminga Dissanayake
over 4 years ago

1 Comment

50f6c336daaaf687ec0044dc_750870836 Joanna over 4 years ago

No, that's for the following exercise. The solution was to submit exactly the same thing I submitted - but from a different browser :-/. Thanks anyway!


-1 votes

permalink

found out is actually my opera browser compatibility causes, once i tried on IE10 it's works fine with clicking few times submit button

136 points
B04963a5e3a3a52040ae0cd3c985f401?s=140&d=retro
Submitted by
azetect
over 4 years ago


-1 votes

permalink

It's funny that I get the same error message, although I typed the right answer, like you, but I managed to go forward and complete the lesson. I mean: The application let me continue my lessons besides that error message. Why (and how) is it possible?

110 points
Picture
Submitted by
Francisco Silva
about 4 years ago


-2 votes

permalink

You are most probably using Opera, if that is the case change a browser and do the exercise

165 points
E0d3932ece727ec66ea2b1f0b77a2776?s=140&d=retro
Submitted by
tzele
about 4 years ago


-3 votes

permalink

I have same problem

388 points
8aaeca1ed3c2a33db70d6d51c1f745ed?s=140&d=retro
Submitted by
archidevil
over 4 years ago


-4 votes

permalink

capitalizing the first letter of the font type

/*Add your CSS below!*/
h1  {
    font-family: Serif;
}

h2  {
    font-family: Sans-serif;
}

h3  {
    font-family: Cursive;
}

146 points
8c0732d0d557f650bde11d3052cd7a3f?s=140&d=retro
Submitted by
Elhout
over 4 years ago


-14 votes

permalink

it should say head not h1

330 points
E7ccad6f9ff126dbb8cbc343f1d4559b?s=140&d=retro
Submitted by
jamie doyle
over 4 years ago

2 Comments

50f6c336daaaf687ec0044dc_750870836 Joanna over 4 years ago

Nope, it didn't work with "head" either.

50f6c336daaaf687ec0044dc_750870836 Joanna over 4 years ago

This time the error message said "Did you remember to set your header font-family to serif?"