Conditional CSS for Internet Explorer 10 only [duplicate]
This question already has an answer here: How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code? 25 answers Internet Explorer 10 has broken my jQuery menu. I can fix this by applying a small revision to our CSS as per the example below. /* For Internet Explorer 10 ------*/ margin-top: 1px; /* For all other browsers ------*/ margin-top: 2px; Is there a way to apply these cases conditionally in my CSS include? I know browser sniffing is not ideal, but this seems to work fine: if ($.browser.msie &&