cmathers
12 years agoContributor
Using images path in CSS file
I'm confused. I have tried both
When I try <img src="${skin.images.icon_paging_page_arrow_previous_dis_rtl.url}" /> in a custom component, it correctly outputs the image. The image path resolves to
<img src="/skins/images/527CD50CEF9AB8B1878F31BDA6C33AE2/hbo-439108329/images/icon_paging_page_arrow_previous_dis_rtl.png">
However, that freemarker code does not work in CSS files. Is there a method I can use to reference the base path for images in CSS files?