Target IE7/IE8 in css (less) -


i'm using .less compile css.

is there way target ie7/ie8 in less file particular rules?

thanks

absolutely use conditional classes paul irish posted about if can, because it's slick, easy write , maintain styles for, , limits hackery 1 place.

that said, if want target 1 rule @ version of old ie, can use favorite hacks letting less compiler know whatever you're trying outside bounds of things should worry :)

the following generate kinds of less compiler errors:

.class{         _margin: !15pl*madhax!__dang,ie; } 

but, if wrap hacky madness inside ~"", less ignore (although still have access @variables if want use them)

.class{         _margin: ~"!15pl*madhax!__dang,ie"; } 

hope helps!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -