Background image defined in CSS not showing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Background image defined in CSS not showing

mjgraham
Hi,

I have a problem that a background image defined in my css is not
showing - the css is definitely being used since other definitions in it
are working. My css resides in config/theme/ and the image it calls is
in images, exactly as the example OPS setup. The css statement is:

body {background-image: url(/images/graphbg.gif);}

However, I have also tried: ../images/graphbg.gif,
../../images/graphbg.gif and images/graphbg.gif all to no avail.

I have also tried to directly force the background with:

<xhtml:body background="/images/graphbg.gif">

in the view page and this also does not work.

Is there a problem with displaying background images?

    Cheers,

    Matthew



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Background image defined in CSS not showing

Erik Bruchez
Administrator
Matthew Graham wrote:
 > Hi,
 >
 > I have a problem that a background image defined in my css is not
showing - the css is definitely being used since other definitions in it
are working. My css resides in config/theme/ and the image it calls is
in images, exactly as the example OPS setup. The css statement is:
 >
 > body {background-image: url(/images/graphbg.gif);}
 >
 > However, I have also tried: ../images/graphbg.gif,
../../images/graphbg.gif and images/graphbg.gif all to no avail.

The only thing to be careful with is that the path to the image is
relative to the external URL of the CSS file. So try to enter manually
the path to the image in your browser to make sure the image can be
correctly loaded.

 > I have also tried to directly force the background with:
 >
 > <xhtml:body background="/images/graphbg.gif">
 >
 > in the view page and this also does not work.

This definitely works for me. What do you see in the resulting HTML?

 > Is there a problem with displaying background images?

Not on my machine ;-)

-Erik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws