CSS background-image not showing

plcoelho - June 28, 2009 - 20:35

I created a Zen subtheme and an images folder, under the sub-theme folder.
In my .css, I use background-image: url(images/xxxx.gif); but the images never show.

I tried to put the graphics in the sub-theme folder, or even in the Zen theme, but it doesn't work.
Is there a place where we define the starting path? Is it the sub-theme path? Did I miss any step while creating the sub-theme (I followed the Zen documentation)?

There must be a simple mistake...

=-=

VeryMisunderstood - June 28, 2009 - 20:57

Your syntax above is incorrect.

Try:

background: url('images/someimage.jpg');

note: the non use of background-image and the path between single quotes.

I think the problem is not CSS

plcoelho - June 30, 2009 - 12:09

Thank you for your tip.

Unfortunately, it doesn't work in my case.
I tried in another Drupal installation, and it worked fine (as well as the background-image version - maybe it's new and, since I'm a newbie, I saw some recent CSS docs).

The problem is that the theme doesn't recognize any file or folder that I add to it's directory.
I checked the filesystem permissions, and it seems to be ok...

Maybe the theme registry is not updating well...

plc

=-=

VeryMisunderstood - June 30, 2009 - 17:59

when altering css, make sure you do not have css aggregation turned on in administer -> performance
make sure you cache is clear in administer -> performance
make sure you browser cache is cleared

Nothing happened

plcoelho - July 4, 2009 - 12:40

Tried all the advices, installed Zen and a new subtheme, but it seems that there's an issue with some path variable, because I can't point to a file inside CSS...

plc

Fixed!

plcoelho - July 4, 2009 - 16:02

It was a filesystem permissions issue.

Thank's anyway for your help, because you teached me something :)

plc

 
 

Drupal is a registered trademark of Dries Buytaert.