Is it possible to store a constant value and append in CSS property in CSS file ?
For example
CSS
.test {
background:url('img/test.gif');
}
Is there anything where we append a path in CSS.
It’s only my guess
content= 'files/images/';
background:url('img/test.gif');
to
background:url(content'/img/test.gif');
So that, it will output as
background:url('files/images/img/test.gif');
It’s only for knowledge, whether it is possible or not ?
Not in standard CSS, as far as I know. You can do this, and far cooler things, if you use something like LESS
Some examples of ‘far cooler things’ are defining functions/methods, and evaluating mathematical expressions etc. Standard CSS does not allow any such tomfoolery.