|
Answer» Alright, I think I've just about gotten to the point where I can't figure this one out for myself...
Basically, I have two different sylesheets: styles.css and styles2.css. The first one was designed for Firefox and the second one was designed for IE6. styles.css is the default and I want to be able to import styles2.css for people who are viewing with IE6 (which would cause it to load a different template for them). I don't want to import certain browser-specific elements, but a whole new stylesheet. How in the world do I go about doing this?
I've searched on Google and am referencing Andy Budd's CSS Mastery, but I can't get anything to work.The first thing that popped into my mind as reading your question would be to use JavaScript for this, I did a quick search thinking of javascript and css in mind and came up with this RESULT which looks like it should work for you.
http://rafael.adm.br/css_browser_selector/
Thanks, Nathan, I'll give it a try tonight.I've got everything all sorted out now. I was also having trouble GETTING the javascript to work, but it led to me finding out what my problem was. I don't know why it never OCCURED to me, but I didn't realize that I had to redefine the different parameters. I was simply omitting the selectors I didn't want because I thought the second CSS would be displayed instead of the first, not simply displayed over it. This is why I couldn't even get the STAR HTML hack to work. I have now got the CSS import working according to plan and I'm a LOT less frustrated.Good to hear.
|