I am using rails 4
This is a part of my css file:
.parallax-image-2 {
background: url('/assets/tuscany.jpg');
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-attachment: fixed;/* IE FIX */
}
How can i use variable in the css file? Is that possibly? Like this
.parallax-image-2 {
background: url('/assets/#{@region.name}');
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-attachment: fixed;/* IE FIX */
}
thanks...remco