On Apr 10, 2008, at 5:54 AM, Jeff Jansen wrote:
> I've got an element for which I'm using this:
>
> font-family: TW Cen MT, Arial, Helvetica, sans-serif;
> font-size: 16px;
>
> The problem is, Arial at 16px appears significantly larger than TW  
> Cen MT at
> 16px. So if the user's system does not have TW Cen MT (the preferred  
> font)
> installed, the Arial looks way too big, esthetically. Does CSS  
> provide any
> way to do something like this:
>
> if (TW Cen MT is available) then 16px else 13px
>
> or even
>
> if (TW Cen MT) then 16px elseif (Arial) then 13px elseif (Helvetica)  
> then
> 13px elseif (sans-serif) then (13px) endif

Font-size-adjust [1] would do that for you. Unfortunately, support is  
a bit weak atm: only Gecko 1.8/FX2 for Windows and Gecko 1.9/Fx 3 on  
all platforms.

[1] css3-fonts module
<http://www.w3.org/TR/css3-fonts/#font-size-adjust>

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to