Image background in css...

Author Message

enigmista enigmista

Wednesday 16 July 2003 7:55:45 am

I have in my pagelayout.tpl: <link rel="stylesheet" type="text/css" title="default" media="print" href={"css/screen/v07072003.css"|ezdesign} />

in v07072003.css i have:
body { background-image: url(/design/mydesign/images/bg_pannello.gif); }

But background not appears...
I have tried with body { background-image: url(http://localhost/design/mydesign/images/bg_pannello.gif); } without succes... Any ideas?

Bjørn Kaarstein

Wednesday 16 July 2003 10:50:52 pm

Try this.

background-image: url(http://www.ez.no/var/ezno/storage/variations/image/p/h/p/phpY6gFSk_600x600_76846.gif);

You need to have the full path to your picture.

Regards Bjørn

Morten M

Friday 18 July 2003 1:19:03 am

Hi enigmista,

If Bjørn's suggestion isn't working (which it isn't for me), try this instead:

body
{
background: url(../images/bg_panello.gif);
}

At least that works for me... :-)

Regards.
Morten.

enigmista enigmista

Friday 18 July 2003 1:23:04 am

../ don't work. Works fine /design/mydesign/images/bg_top.gif
Tnx

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.