Forum Moderators: not2easy

Message Too Old, No Replies

Align website into middle even when scrollbar showup?

         

borisz

2:04 pm on Jul 14, 2010 (gmt 0)

10+ Year Member



Hi everyone,

Im working on new website and I did aligned website into middle using:

.wrapper{
margin-left: auto;
margin-right: auto;
}

and website is into middle, but when page is long and when scroll bar show on the right side the website stay aligned into middle as without scrollbar or better say its few inch. pulled on the right side; e.g. here is the link to one page www.couponsdepo.com/products/categories/computer/laptops.php (website is still in late development, so dont pay attention on other bugs in IE6 & 7) if you just pay attention on website sides you will see its pulled on right a little bit. Hope you understand what Im trying to say.

Thanks!

dreamcatcher

7:50 am on Jul 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I tend to force scrollbars, which gets around this problem:

html,body {
height: 100%;
margin: 0 0 1px 0;
padding: 0 0 1px 0;
}


dc