Previous Message
Next Message

[css-d] UA sniffing/IE text size

Sent by Dev on 29 December 2002 17:05


Hi all,

The bane of my life at the present is IEWin's ridiculous tendency to
render 'keyword-sized' (i.e. x-small, small etc) text one size larger
than every other browser/platform combination in the known universe. I
like using keywords, it helps me avoid the tendency to try to control
text size down to the last pixel. But clients who inevitably use IEWin
want the text size they see to be smaller and I don't like leaving all
other users squinting by default.

I have been using a nasty alternate stylesheet, containing all classes
in the main stylesheet that specify a text size, and reducing it by one
keyword, and then serving this stylesheet to IEWin only by server-side
code where possible, JavaScript where not. So if the UA sniffing fails,
the user just gets the bigger text which is resizable anyway, and
nothing is lost. 

BUT I've been reading all the recent posts about UA's being not very
accurate, and I'm wondering if there's a better way to do what I want.
I'm assuming that Opera, for example, will get my IEWin tiny text as it
includes both "msie" and "windows" in the UA string (can't test yet as
I'm just reinstalling everything).

So, can anyone suggest anything to help a web developer trying really
hard to do the right thing? ;)

Thanks,
Kay.

---------------------
http://kay.smoljak.com
Previous Message
Next Message

Message thread: