rjsimpson5985
08-01-2008, 10:49 AM
I have built a new homepage for the company I work for, I am quite experienced with CSS however I am having a quite annoying problem.
The problem I am experiencing is when my browser is not maximised the position of the page is not positioned completely to the left and you can not use the horizontal scroll bar to scroll to the left part of the page that is cut off.
When the page is maximised this is not a problem.
The page is centred using the following css code:
#centerDoc {
position: absolute;
margin: 0;
margin-top: 0px;
/*To centre the box set "left: 50%" and "Margin-left:" to half of the boxes width.*/
/*All other object are embedded within this centred box in the html*/
margin-left: -502px;
Width: 1002px;
Height: auto;
left: 50%;
top: 0;
background-color: #FFFFFF;
/*overflow: auto;*/
}
Web address: http://www.wastecare.co.uk
Has anyone got any idea why this is happening?
Thanks
The problem I am experiencing is when my browser is not maximised the position of the page is not positioned completely to the left and you can not use the horizontal scroll bar to scroll to the left part of the page that is cut off.
When the page is maximised this is not a problem.
The page is centred using the following css code:
#centerDoc {
position: absolute;
margin: 0;
margin-top: 0px;
/*To centre the box set "left: 50%" and "Margin-left:" to half of the boxes width.*/
/*All other object are embedded within this centred box in the html*/
margin-left: -502px;
Width: 1002px;
Height: auto;
left: 50%;
top: 0;
background-color: #FFFFFF;
/*overflow: auto;*/
}
Web address: http://www.wastecare.co.uk
Has anyone got any idea why this is happening?
Thanks