PDA

View Full Version : centering a page


Reflexion
03-08-2007, 12:29 AM
No, this is not a post on "how can I center my pages".

My webpages are all centered, but some are "higher than others" and need to have a scrollbar. What this do is shifting the entire page 4 to 6 pixels to the left, and this is annoying.

Is there a way to make it not shift to the left?

thank you in advance

edbr
03-08-2007, 02:22 AM
sorry didnt get that. do you have a link so we can see the problem?

chriskq
03-08-2007, 09:37 AM
i know what you mean.

and no basically theres no way to stop that unless you make your whole site in flash.

if you have a fixed height website - you can use some css expression to center the page vertically and horizontally according the to the monitor resolution

i've done it for a friends site that i made
www.redro.com.au


check out the css
www.redro.com.au/common/styles/redro.css

Reflexion
03-08-2007, 12:26 PM
This is a nice site, but it is not what I am looking for.

Since my site is not on the internet for now, I can not show it to you, but when I come back home, ill post my zip file on the forum.

domedia
03-08-2007, 12:52 PM
The shift you see is because the scrollbar appears when the page is taller than the viewport. This might be annoying to you, but expected behavior. Every webpage works like that, and really not a problem :)