[Webpro] CSS font shorthand property
Tony Crockford
tonyc at boldfish.co.uk
Mon May 17 04:49:41 EDT 2004
At 09:39 on Monday, 17 May 2004, listadmin wrote:
> Hello
>
> Exploring the font shorthand property... This seems to work in IE6/Win,
> but it fails in Mozilla:
>
> font:12px,#000,trebuchet ms,geneva,arial,sans-serif;
>
> Mozilla falls back to the basic serif font (times). Is this a known bug,
> or is the syntax not supported?
fonts with spaces should have "" thus:
font:12px, "trebuchet ms", geneva ,arial , sans-serif;
and font can't carry a color attribute
try
color: #000;
background-color: #fff;
font:12px, "trebuchet ms", geneva ,arial , sans-serif;
http://www.w3schools.com/css/pr_font_font.asp
;o)
More information about the Webpro
mailing list