[thelist] IE4/5 Font Size

miinx lists at miinx.com.au
Sat Oct 19 20:28:01 CDT 2002

Djinn wrote:
> But I'd like to
> know if there is a way to specify a style sheet only for IE4/5 so I can
> correct the default font size for that browser.

you need to employ a browser 'sniffer' script to check for that browser,
then if so write a style sheet link... try this:

<script language="javascript">
var bVersion = parseInt(navigator.appVersion)

if (navigator.appName == "Microsoft Internet Explorer") {
   if (bVersion >= 4 && bVersion <= 5) {
     document.write ("<link href='yourIE4ss.css' rel='stylesheet'
// -->

put that in the <head> section of your code, changing 'yourIE4ss.css'
for the name of your targetted ie4 style sheet.

good luck,
Miinx Design & Development
e :: karen at miinx.com.au
p :: 0413.880.302
w :: www.miinx.com.au

More information about the thelist mailing list