You are not logged in.

#1 2009-01-04 02:55:58

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

[Solved] css setting font family, ff3 vs ie7

In my css, I've set 'font-family: sans;' in body { }, and in ff3 on my Arch laptop, it displays correctlly. In ie7 on my wifes vista laptop, it still reverts back to w/e serif font it uses if it can't find one set by the web page. I have no idea why this is happening, and I can't seem to fix it. Can anyone give me a hand?

Last edited by Sjoden (2009-01-04 03:07:09)

Offline

#2 2009-01-04 03:01:31

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: [Solved] css setting font family, ff3 vs ie7

Agh, well, I looked at thayer's blog to see if that worked in both browsers and it did, so I checked to see how he had his fonts set up.

font-family: Arial, DejaVu Sans, sans-serif;

The closest I got to that was 'font-family: Arial, DejaVu, sans;'

Offline

#3 2009-01-04 03:52:53

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [Solved] css setting font family, ff3 vs ie7

Why not

font-family: Arial, DejaVu Sans, sans, sans-serif;

?

That way you still get a sans-serif font, even if they don't have sans installed.

Last edited by SamC (2009-01-04 03:52:59)

Offline

#4 2009-01-04 04:12:30

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [Solved] css setting font family, ff3 vs ie7

That DejaVu Sans there needs a pair of quotes around it (because it contains a space):

font-family: Arial, "DejaVu Sans", sans-serif;

Last edited by foutrelis (2009-01-04 04:13:05)

Offline

Board footer

Powered by FluxBB