I am using the LESS styling language.
Consider the following CSS:
.side-bg
{
background:url(../img/layout/side-bg.jpg) top no-repeat;
}
Anton Strogonoff's answer is good but be aware of the Issue @294:
Using the above which comes straight from the docs, I get url://pathtolessfile/variable
I set. Even though I'm trying to set an absolute URL instead of a relative one. For example this works
@base-url: "../../images/";
@background-image : url ("@{base-url}/bg.png");
But this does not work
$base-url: "http://localhost/ns/assets/images/";
@background-image : url ("@{base-url}/bg.png";
In the latter example, my final source path becomes
http://localhost/ns/assets/css/libs/http://localhost/ns/assets/images/bg.png