Path

7x / documentation / exponential / technical manual / 5.x / templates / basic template tasks / url handling / image references in css files


Caution: This documentation is for Exponential, from version 3.x to 6.x.
For 5.x documentation covering Platform see Exponential Platform Documentation, for difference between legacy and Platform see 5.x Architecture overview.

image references in CSS files

I think image references in CSS files (e.g. "background-image: url(etc)") entail different considerations.

On the one hand, you don't need to worry that you can't use ezimage() inside a CSS file, because since URLs in CSS files are relative to the file's location, you can just use "url(../images/etc.gif)" to get to the images directory from your stylesheets directory.

On the other hand, this means that the URL is hard-coded -- if there's no etc.gif in the main design, the fallback designs won't be checked for it. It will simply get a 404.

Anonymous User (13/05/2008 10:39 pm)

Anonymous User (13/05/2008 10:39 pm)


Comments

There are no comments.