By mefano
Friday, 18. September 2009, 22:29:03
Browser detect conditional statement
Hi,I've been working on improving my cross-browser compatibility and have run into some issues. I started in IE and the CSS for it. Of course, it looks different in Opera and FF. I created a second CSS and used an IF statement to load the first one for IE only. The new CSS fixed the FF issues, but not the Opera issues. I would like to use another IF statement to load the CSS for Opera, but it isn't working.
The below works to specify IE, but when I try the same thing for Opera it's a no-go.
[if IE]
<link rel="stylesheet" type="text/css" href="new_ie.css" />
[endif]
The site is at www.adam-k-watts.com if you want to see it. I am trying to correct some positioning and font-size issues.
Once all that is done, maybe I will try to figure out why the JS that displays times from all over the world only works in IE. But first things first.
If anyone can help me out, I would greatly appreciate it.
Thanks.