<!--[if !IE 7]>
<link src="path/to/ie/css/file" rel="stylesheet" type="text/css"/>
<![endif]-->
Add it below where you attached your normal css and the IE styles will overwrite your normal css styles.
Not sure if the above is the exact conditional you need. I have pasted below all the available conditional statements you can use for IE.
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br />
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE<br />
<!-- <![endif]-->
Nathan Mynarcik
On Wed, Nov 16, 2011 at 6:34 AM, Pawel_Iks <pawel.labedzki@gmail.com> wrote:
Hello!I would like to write script which works as follow:1) it detect browser:2) if browser=="ie" then it load "ie.css"3) else, it load file "other.css"How to do it?--You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.To post to this group, send email to javascript-information@googlegroups.com.To unsubscribe from this group, send email to javascript-information+unsubscribe@googlegroups.com.For more options, visit this group at http://groups.google.com/group/javascript-information?hl=en.
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To post to this group, send email to javascript-information@googlegroups.com.
To unsubscribe from this group, send email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascript-information?hl=en.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.