Cs-Cart 4 And Conditional Css

Has anyone had any luck with using conditional css with CS-Cart 4, specifically for Internet Explorer?


<br />
{literal}<br />
<!--[if gt IE 8]><br />
<style type="text/css"><br />
 .top-menu {<br />
 margin-top: 62px!important;<br />
}<br />
</style><br />
<![endif]--><br />
{/literal}<br />

```<br />
<br />
I've got a client that has laid out their entire site and has one quirk that only shows up on IE and I've gone through several attempted fixes to apply a conditional css statement to fix it for them.  No luck.<br />
<br />
I've tried my changes, {literal} to index.tpl and it does not affect the output in IE.  Responds fine to Mozilla and Safari conditional and targeting.

Which version of IE? I can't remember if it is 9 or 10, but starting with one of those, conditional formatting no longer works. I've read a couple of work arounds that are out there, but nothing seems to work.



I wish I could be more help, but that is all I got.



Thanks,



Brandon

[quote name='brandonvd' timestamp='1394689434' post='179207']

Which version of IE? I can't remember if it is 9 or 10, but starting with one of those, conditional formatting no longer works. I've read a couple of work arounds that are out there, but nothing seems to work.



I wish I could be more help, but that is all I got.



Thanks,



Brandon

[/quote]Thanks Brandon. I appreciate the response.

In case anyone else needs it, I had to adjust base.css to support the IE requirements and then Hack the Visual Editor CSS as follows:



/*Mozilla Support*/
@-moz-document url-prefix() {
.top-menu {
margin-top:31px;
}
}

/*Saf3+ and Chrome1+ */
@media screen and (-webkit-min-device-pixel-ratio:0) {
.top-menu {
margin-top:30px;
}
}

@requincreative,



Thank you for the useful information.

[quote name='eComLabs' timestamp='1394719699' post='179255']

@requincreative,



Thank you for the useful information.

[/quote]Sure thing.



I normally don't condone the use of CSS hacks in the age of standards-compliant browsers, but it was a the path of least resistance for a design that I wasn't involved in from the start.