Reputation: 24160
I am defining css variable like
<style type="text/css">
@variables {
static:{{STATIC_ROOT_PATH}};
}
</style>
I want to use this variable while framing image path. Is it possible something like
background: transparent url('var(static)/images/button_bg.png')
This code is not working for me.
How can I frame image path based on static value ?
Upvotes: 0
Views: 721
Reputation: 372
I don't believe that variables are an implemented part of CSS3 at this time. A quick google search returns only articles debating the usefulness of said variables.
I saw earlier someone posted about this extension: http://sass-lang.com/, which allows variables and mix-ins, you may want to look into that?
Someone comment and correct me if I'm wrong.
Upvotes: 2