PDA

View Full Version : centering webpage if users res is too large


Spirit
02-19-2005, 12:49 AM
I'm using Yahoo Pagebuilder to make a photo website for my friends and I'm planning to make it 800x600 resolution, but if they're screen is 1024x768 it will be on the right with a lot of blank space. So I'm just wondering if there is a javascript to center a webpage on a browser if the users resolution is larger then the webpage resolution.

hemebond
02-19-2005, 01:42 AM
You do this with CSSmargin:auto;

Spirit
02-19-2005, 02:09 AM
Thanks a lot hemebond, I'll try it once I have time and hopefully I'll be able to get it right. I'm a noob at this.