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

About You Forum

View Course » View Exercise

134 points
528a0805abf821d076003858_339459021
Submitted by
Naveen Sharma
almost 4 years ago

12/21 expected body to have its font-family style equal to Helvetica but got 'Times New Roman'

in exercise 12/21 i am not able to input my font-family on body
its always showing error message i.e. Oops, try again. expected body to have its font-family style equal to Helvetica but got 'Times New Roman'


1 vote

permalink

I had the same problem and here is a solution. Write font-family: Helvetica; before everyting in the body{}.

body {
font-family: Helvetica;
text-align:center;
background: black;
color: white }

280 points
B0223d3af163a327619605e357dda700?s=140&d=retro
Submitted by
graditelj35
over 3 years ago

1 Comment

D81909f65781490b74ff7a8d03054c53?s=140&d=retro OllyOtter about 2 years ago

Nice one - this works! Thank you.


0 votes

permalink

Same problem. But it has to be a error in the exercise itself. Ive been playing around with html and css enough to know that ive entered the css value correctly.

Edit - The exercise is correct. The computer/browser I used earlier didnt have the correct font support/kit installed or opera dont support Helvetica(?) fonts I guess. Tried it on chrome and it worked correctly.

1403 points
52754c35abf82193370059ea_871541115
Submitted by
Allan Arnesen
almost 4 years ago

6 Comments

528a0805abf821d076003858_339459021 Naveen Sharma almost 4 years ago

i am working in Chrome only, but still showing this error...

52754c35abf82193370059ea_871541115 Allan Arnesen almost 4 years ago

Strange. I had the problem on a different pc using opera browser. When I got to my own pc and Chrome it worked like a charm. Do you have the Helvetica font kit installed on you pc?

52754c35abf82193370059ea_871541115 Allan Arnesen almost 4 years ago

Or in other words, if you make a html sheet in notepad++ and set some with the Helvetica font and open that document in your browser. Does it show the font as Helvetica?

52be10e3282ae34452003595_147475293 Liamy1234 almost 4 years ago

I'm using acer chromebook C720 but again, saying 'Oops, try again. expected body to have its font-family style equal to Helvetica but got 'Times New Roman'

52754c35abf82193370059ea_871541115 Allan Arnesen almost 4 years ago

And you tested what I wrote above? And your webbrowser shows all the as Helvetica ? If not, try that and check if your computer supports the Helvetica fonts before you try anything else. You se that the Times New Roman is a fallback font if YOUR pc dont support the first font style = Helvetica.

B0223d3af163a327619605e357dda700?s=140&d=retro graditelj35 over 3 years ago

SOLUTION!!!
I had the same problem and here is a solution. Write font-family: Helvetica; before everyting in the body{}.

body {
font-family: Helvetica;
text-align:center;
background: black;
color: white }


0 votes

permalink

I am using Chrome and have the same problem as well. Solutions? Thanks!

331 points
52da8a9b8c1cccfa18002101_442490564
Submitted by
estrellaetoile
almost 4 years ago

3 Comments

52754c35abf82193370059ea_871541115 Allan Arnesen almost 4 years ago

Im sorry mate, I dont know what to say. Ive tested it again. From my pc at work, using opera browser, it doesnt work. From home at my own pc using chrome, it works. but I dont have the Helvetica font installed on my work computer, so im guessing thats my problem. Could you please try what I wrote below? Make a html document in notepad++ with a couple of and set the font to helvetica. Open that document in chrome. Does the show in helvetica font? if not, your pc dont have any Helvetica fonts installed and thats your problem. Helvetica fonts are not standard on windows platform(is on mac though) so that might be your problem.

B0223d3af163a327619605e357dda700?s=140&d=retro graditelj35 over 3 years ago

SOLUTION!!! I had the same problem and here is a solution. Write font-family: Helvetica; before everyting in the body{}. body { font-family: Helvetica; text-align:center; background: black; color: white }

D2b513cdd756316bf6c0846bc562d317?s=140&d=retro Karthik Appana almost 3 years ago

it does work not


0 votes

permalink

I tryed using opera, but it dident work. Im now using chrome and it still doesent work.. What am i doing wrong

195 points
9aab25b3f35582ce2d85364b3b38646a?s=140&d=retro
Submitted by
Ann Kemp
almost 4 years ago

4 Comments

E011a426dc8218e9de59116d88c2fce5?s=140&d=retro XiaoyangTang almost 4 years ago

Have you fixed the problem?

52754c35abf82193370059ea_871541115 Allan Arnesen almost 4 years ago

Xiaoyang, Im quite sure that you are having troubles becouse you dont have the Helvetica fonts installed on your computer. As I wrote above, open a New html document in notepad++, Write : Test for Helvetica fonts
Open that in Explorer, chrome or whatever browser you are using. Does this paragraf show as Helvetica?

B0223d3af163a327619605e357dda700?s=140&d=retro graditelj35 over 3 years ago

SOLUTION!!! I had the same problem and here is a solution. Write font-family: Helvetica; before everyting in the body{}. body { font-family: Helvetica; text-align:center; background: black; color: white }

F4d3b3a0ae8ccc1d631a758f5d5d4c38?s=140&d=retro sebi.singh over 3 years ago

Make sure you capitalize Helvetica.


0 votes

permalink

I started out having the same error, plus when I entered the font-family keyword my text disappeared. I fixed it by putting the font-family keyword before the color keyword. The exercise doesn't tell you to do this, and I don't think it's strictly necessary in real HTML/CSS circumstances, but it seems to work here.

1345 points
19c7cdd27f1d9c525092c75579a4b723?s=140&d=retro
Submitted by
cuchuwyn
over 3 years ago

1 Comment

B0223d3af163a327619605e357dda700?s=140&d=retro graditelj35 over 3 years ago

SOLUTION!!! I had the same problem and here is a solution. Write font-family: Helvetica; before everyting in the body{}. body { font-family: Helvetica; text-align:center; background: black; color: white }