CSS works fine on my page when I use it inline as well as when I link to external sheets. However, I'm finding that IE5 on Mac (our favorite browser) won't apply the stylesheet when written with the following Javascript:
This is sniffer code to recognize IE 5.5 or above. I've done a LOT of testing and no matter what I do, I can't get any CSS file written by Javascript to get applied to the page being viewed. Is there some trick I'm not getting here? If it's any help, the page I'm working on is here:
Code:
if (navigator.appVersion.indexOf("MSIE 5.5") || navigator.appVersion.indexOf("MSIE 6")) {
document.write('<'+'link rel="stylesheet" type="text/css" href="styles/iframe_win.css" />');
} else {
document.write('<'+'link rel="stylesheet" type="text/css" href="styles/iframe_mac.css" />');
}