This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Naveen Sharma
over 10 years

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’

Answer 532b073352f8635d3f0002fd

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 }

points
Submitted by graditelj35
about 10 years

1 comments

OllyOtter over 8 years

Nice one - this works! Thank you.

Answer 52a1fdf952f8637d420003ea

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.

points
Submitted by Allan Arnesen
over 10 years

6 comments

Naveen Sharma over 10 years

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

Allan Arnesen over 10 years

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?

Allan Arnesen over 10 years

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?

Liamy1234 over 10 years

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’

Allan Arnesen about 10 years

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.

graditelj35 about 10 years

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 }

Answer 52c9553152f863356600570f

0 votes

Permalink

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

points
Submitted by estrellaetoile
about 10 years

3 comments

Allan Arnesen about 10 years

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.

graditelj35 about 10 years

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 }

Karthik Appana about 9 years

it does work not

Answer 52da588952f8631f6a001973

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

points
Submitted by Ann Kemp
about 10 years

4 comments

XiaoyangTang_ about 10 years

Have you fixed the problem?

Allan Arnesen about 10 years

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?

graditelj35 about 10 years

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 }

sebi.singh almost 10 years

Make sure you capitalize Helvetica.

Answer 531d256a80ff332f87007110

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.

points
Submitted by cuchuwyn
about 10 years

1 comments

graditelj35 about 10 years

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 }