Forums / Setup & design / web pages don't fill the browser window

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