
November 14th, 2007, 03:27 PM
|
|
Contributing User
|
|
Join Date: Apr 2007
Location: Nr Manchester, England
Posts: 157
Time spent in forums: 1 Day 11 h 1 m 26 sec
Reputation Power: 2
|
|
|
Javascript - Center main content in browser - css or js?
I have a site that is 1500px wide 1100px in height. I want the page to open up and display the main content which is in the middle, vertically and horizontally in the centre of the browser regardless of the size. Therefore someone with a big screen will see the whole site and someone with a small screen will be presented the main content in the middle of the page.
The tricky part is that I want the people with the small screens to be able to scroll up to see the top of the page and scroll to the left of the page. Is this possible with CSS or will I need javascript? Ive experiemented a little with CSS but am not getting what I want. Any ideas?
Thanks in advance for your help.
|