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.

eZ debug

Timing: Jan 18 2025 15:52:59
Script start
Timing: Jan 18 2025 15:52:59
Module start 'layout'
Timing: Jan 18 2025 15:52:59
Module start 'content'
Timing: Jan 18 2025 15:53:00
Module end 'content'
Timing: Jan 18 2025 15:53:00
Script end

Main resources:

Total runtime0.6434 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0391152.6250
Module start 'layout' 0.00630.0025 741.664139.4453
Module start 'content' 0.00880.6331 781.1094513.6484
Module end 'content' 0.64190.0014 1,294.757812.1641
Script end 0.6433  1,306.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5097160.0002
Check MTime0.00130.2076160.0001
Mysql Total
Database connection0.00110.177010.0011
Mysqli_queries0.599493.1724620.0097
Looping result0.00060.0925600.0000
Template Total0.618396.120.3091
Template load0.00170.261020.0008
Template processing0.616695.840120.3083
Template load and register function0.00020.037010.0002
states
state_id_array0.00070.116310.0007
state_identifier_array0.00080.131720.0004
Override
Cache load0.00140.2176260.0001
Sytem overhead
Fetch class attribute can translate value0.00100.150230.0003
Fetch class attribute name0.00150.232240.0004
XML
Image XML parsing0.00030.049330.0001
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00070.1020100.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs