How to get less to output a css variable with quotes


Tags: css,less

Problem :

I have a filter property that i want to get in quotes:

.TabClass{
progid: "DXImageTransform.Microsoft.BasicImage(rotation=2)";
}

This is written in less like:

filter: e(%("progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"));

When it is generated from less, there are no quotes for DXImageTransform, which causes a warning to be displayed in Safari dev tools.

How to ensure quotes are present?



Solution :

The solution as @seven-phases-max pointed out was to not use the e function.


    CSS Howto..

    How do I style JUST the reflection of the content without affecting its original source?

    How to apply more than 1 CSS styles in javaScript? [duplicate]

    How to correctly apply the .clearfix:after class to HTML?

    How to wrap text in css

    How to css 3rd li in hierarchy?

    How to fit images into keeping the exact size of

    How to rotate pseudo element css

    How to set the width of a list, in css

    How to load CSS in specific page in php

    How do I create CSS only tabs/pages with #hash URLs?

    why is .show() making the target div appear at top of page?

    how to build a triangular slider? [closed]

    How to make an Image overlay the site on click?

    JavaScript -Change CSS color for 5 seconds - How to add easing effect?

    How to use CSS to surround a number with a circle?

    How do I specify CSS classes for specific rows in a GridView?

    How to make sure that different severity Toasters are shown differently?

    How to fix the Height for this area?

    how to override min-width

    How to fix this css to conform to all browsers?

    How to prevent the CSS `:before` text being editable while the `div` itself is editable?

    How to keep a sticky menu contained inside a floating sidebar?

    show loading image before the content loads through jquery or ajax

    How to apply row virtualization for a table / list in HTML/CSS/JS? [closed]

    how to set an element at fixed relative position in html rendering.? [closed]

    Divs showing and then hiding on page load

    How to achieve MS word tab function in html/ css?

    How can I customize COUNT nodes with css

    How to read CSS property of Psuedo class in javascript

    How to apply properties to 3 types of input on HOVER?