web pages don't fill the browser window

Author Message

Ndjientcheu Patrick

Saturday 03 March 2007 12:05:17 pm

hi,
i would like that my web pages fill all the browser window, but there is always big spaces on the left,right and bottom sides.
How could make such that theses spaces don't appear anymore?

Thanks.

paul bolger

Saturday 03 March 2007 10:06:18 pm

Hi Ndjientcheu

This is more a CSS question than an eZpublish one.

body{margin:0;padding:0} in your stylesheet should fix the sides. The bottom can be a bit trickier, in CSS container elements usually stretch downwards to accomodate their contents. If the viewport (the browser window) is bigger than the content the container element won't stretch to the bottom. There are ways to get around this, but they are a bit involved and won't necessarily work in all browsers.

Take a look at alistapart.com or meyerweb.com for some good articles on CSS.

Paul Bolger

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 31 2025 04:26:19
Script start
Timing: Jan 31 2025 04:26:19
Module start 'layout'
Timing: Jan 31 2025 04:26:19
Module start 'content'
Timing: Jan 31 2025 04:26:19
Module end 'content'
Timing: Jan 31 2025 04:26:19
Script end

Main resources:

Total runtime0.0269 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.2500151.2266
Module start 'layout' 0.00720.0032 739.476636.6797
Module start 'content' 0.01040.0145 776.156390.1563
Module end 'content' 0.02490.0019 866.312529.9922
Script end 0.0268  896.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.4024140.0002
Check MTime0.00124.5649140.0001
Mysql Total
Database connection0.00134.683010.0013
Mysqli_queries0.003011.345830.0010
Looping result0.00000.059510.0000
Template Total0.00134.910.0013
Template load0.00103.737010.0010
Template processing0.00031.165210.0003
Override
Cache load0.00072.676510.0007
General
dbfile0.00041.341880.0000
String conversion0.00000.030240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs