using layers with absolute positioning leaves the website all the way to the left when viewed in higher resolution. How do I center the webpage regardless the clients resolution?
| SitePoint Sponsor |
using layers with absolute positioning leaves the website all the way to the left when viewed in higher resolution. How do I center the webpage regardless the clients resolution?

You need to make sure the containing division has a width and then you add margin: 0 auto; to it.
Welcome to SitePoint BTW.Code CSS:#container{ width:760px; /* --- change this to meet your needs --- */ margin:0 auto; }![]()
Bookmarks