Skip to content

Instantly share code, notes, and snippets.

@djanix
Created March 19, 2013 18:33
Show Gist options
  • Save djanix/5198820 to your computer and use it in GitHub Desktop.
Save djanix/5198820 to your computer and use it in GitHub Desktop.
Hot to add a var in a background-image css rule in less
@image-path: "../path/to/img";
.item {
background: url("@{image-path}/image.png") center center no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment