[Javascript] forcing browser text size and/or text zoom settings

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Apr 18 03:47:14 CDT 2001


>I guess you haven't heard about the CSS command "!Important"
>read about it, it's done to prevent user setings from overriding you're 
>style.

But it works unreliably. Besides it only overrides user defined style 
sheets, not general browser functions such as text size. So in this 
particular case it doesn't help.

>It's also very nice to give size of every font and text with --pt, and not 
>with px,
>That way at browser default setings, user can not resize you're font, it is 
>not afected with size command. And you will not have to worry about the 
>browsername.
>Points are interpreted the same way and size in every browser, only pixel 
>wary from the screen resolution.

Exactly the other way around. Giving a site a font size in points will make 
the text OK in one browser (IE on Win) and unreadable in another (NN on 
Mac).

See http://www.alistapart.com/stories/fear4/ for more info.

>State that the CSS u're using is CSS1 it may trick the users CSS2
>Because in CSS2 the user can override the author settings with the same 
>command for instance:
>P { font-size: 18pt ! important }
>
>while in CSS1 they can't.
>Either way, these users are rare, or non-existant for now.

??? First of all, you cannot declare what CSS you use, you just give 
commands and hope the browsers understand it. If you give CSS2 commands and 
the browser doesn't understand them, nothing happens.

Secondly, really CSS2 supporting browsers are still very rare. The only ones 
to qualify are Netscape 6, Opera 5 and Konqueror (and IE5 Mac, up to a 
point). IE5 Win does not support enough CSS2 to make it a really compatible 
browser.

See http://www.xs4all.nl/~ppk/css2tests/ for the tests and the outcome.

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list