I'm trying to add gradients through css.
I have this line for gradients in older versions of ie.
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#e4da9d, endColorstr=#c1b676);
However the javascript interpreter for less css is giving me a syntax error for that line. Is there a way to skip that line from parsing and just output it the way it is.
Use
filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=#e4da9d, endColorstr=#c1b676)";
More about 'escaping' in LESS - String Functions - CSS Escaping
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With