url reference in css

2 messages - 527 views

Hello,

How can reference images files whith differents path in css file.

I have this

bg-image: url(title_gradient.png);

but

bg-image: url(/folder1/folder2/title_gradient.png);

 

Thanks

Yes, if you don't start path by a '/' it is by default relative to '/img/'. Else it's an absolute path into the classpath.