Forums / Setup & design / How to reference backgroung image in css?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to reference backgroung image in css?

Author Message

GG 66

Monday 22 August 2005 7:42:20 am

I'm trying to reference a background image from an external image file with little success.
The usual code for this is

{
background:#E1E1E9 url(shadow.gif) repeat-x;}

all images within my html template are referenced as

<img src={"photohome.jpg"|ezimage}>

adding the {|ezimage} tag within the css won't work. I've also tried absolute references for images. doesn't work.

This is really buggin me, Any ideas greatly appreciated

Matthew Almand

Monday 22 August 2005 7:54:28 am

try this

background: #E1E1E9 url(../images/shadow.gif)repeat-x top left;

usually if you have placed you image within the site design images folder you are using this is how you access it

GG 66

Monday 22 August 2005 9:16:35 am

Thanks Matthew, I was sure I tried that before. Works this time.