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

CSS: An Overview Forum

View Course » View Exercise

551 points
512bb22c9113314f60007f9e_43675535
Submitted by
Andres Muñoz
over 4 years ago

Backup values wrong

I have to do this

In the stylesheet.css tab, add Times as an option before serif, Verdana as an option before sans-serif, and Vivaldi as an option before cursive. Check the Hint if you need help!

So I write this code:
h1 {
font-family:Times, serif, Verdana, sans-serif, Vivaldi, cursive;
}
And get this. Don't know why

Oops, try again.
Did you remember to put Times and a comma between font-family and serif?

The comma is there!


4 votes

permalink

It wants you to style it like this:
h1 { font-family: Times, Serif;
}

h2 { font-family: Verdana, sans-serif;
}
and so on

850 points
Picture
Submitted by
Xman Clark
over 4 years ago

5 Comments

Picture Marco Pierre Fernández Burgos over 4 years ago

you are right, but that exercise does not explain so. THANKS.

51648b63de0d3b41ee0008d7_16618643 SophiaLuvsBunnys over 4 years ago

OMG thanks!!! :D

51c23c4f8c1ccc66c7008f92_196027455?awsaccesskeyid=akiajkz7qvqfd72xnj3q&expires=1505838240&signature=vde4wntaw%2fzvrwsuhrbvxgma0os%3d minecreaft about 4 years ago

Thank you so much!

517bff6c766a204a4c00110e_816631082 Heon Jun Henry Park about 4 years ago

THANK YOU xD

Picture Martin Kana almost 4 years ago

Thank you


3 votes

permalink

Set the p font-family to Garamond.
Give h1 a backup font of sans-serif and p a backup font of serif. .

i don't know how to use this

147 points
Picture
Submitted by
Surendra Shakya
over 4 years ago


0 votes

permalink

The correct code is this

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

156 points
532a991f7c82ca44b00011ca_123824422
Submitted by
Eduardo Lopes
over 3 years ago

3 Comments

5475990b9c4e9d20e5002344_669568235 Devesh almost 3 years ago

thanks lopes

D6d96405294ae390f8c42ac079e0557e?s=140&d=retro Rivera XD almost 3 years ago

thanks is helpful :)

5521227476b8fed4d2000159_426455700 Mahesh Nagar over 2 years ago

thanks is helpful :)