[thelist] load external CSS script

aardvark roselli at earthlink.net
Mon Dec 8 09:42:58 CST 2003


> From: ".:: godsman ::." <iain at godsman.com>
>
> Does anyone know of a script that will load an external CSS file based
> on which browser is being used? I'm not much of a JavaScript expert,
> and need a cut and paste solution.

what about using assorted CSS hacks to hide the CSS from 
certain browsers?

for instance, you can use the @import directive to bring styles into 
a page, but since NN4.x doesn't support it, you can use it bring in 
styles that would hose NN4.x (padding, margin, line-height, etc.)...

the CSS-D wiki has some good links:

Browser Detection:
http://css-discuss.incutio.com/?page=BrowserDetection

CSS Hacks:
http://css-discuss.incutio.com/?page=CssHacks



--
my latest book project:
  Web Graphics for Non-Designers
  http://www.amazon.com/exec/obidos/ASIN/1590591712/evoltorg02-20
  ISBN: 1590591712


More information about the thelist mailing list