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

CSS: An Overview Forum

View Course » View Exercise

239 points
50dfeda5c98f2795e500340c_591521908
Submitted by
Doug Randall
almost 5 years ago

Why won't this work ?

/Add your CSS below!/
h1 { font-family: Times , serif ; }
h2 { font-family: Verdana , sans-serif ; }
h3 { font-family: Vivaldi , cursive ; }

I get correct output in the results screen. The editor doesn't seem to want to call the Vivaldi and cursive fonts correct though.

I get an error message saying please enter TImes and comma before serif.

Any ideas ?


1 vote

permalink

Try removing the white space before the comma's and semi-colons:

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

The SCT is looking for string matches, which is why your CSS is not being accepted.

8296 points
5958b8ebe12813a2a3000034_980106998
Submitted by
Roy
almost 5 years ago


0 votes

permalink

Thanks! This helped a lot!

85 points
514c852eaf4b609cd4000828_117329755
Submitted by
GENERALCODE100
over 4 years ago


-1 votes

permalink

Thanks. Actually this worked:

/Add your CSS below!/
h1 { font-family: Times,serif;}
h2 { font-family: Verdana,sans-serif;}
h3 { font-family: Vivaldi,cursive;}

239 points
50dfeda5c98f2795e500340c_591521908
Submitted by
Doug Randall
almost 5 years ago