0

How can i mix a css-variable with a String-text like this Example:

@define {   site_path: http://www.xy.de/;}

body{
background:url(@site_path xy.gif);
}

thank you

1
  • You should have a look at Less or Sass Commented Apr 2, 2013 at 13:51

1 Answer 1

2

CSS does not natively support variables. There are CSS "compilers" that can do this, generating static CSS files.

See:

http://lesscss.org/

snd

http://sass-lang.com/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.