View Full Version : Website Centering help

04-19-2005, 04:55 PM
I am looking for a script or a way to center a website within a window browser. So that no matter what resolution I am using, it always stays in the center with equal space on both sides. How would I do that?

I have frontpage 2002, and I have been searching for the answer to this for a some time. I am hoping that a script here would help :D.

So how would I do it? www.dynamicdrive.com would be an example of what I am looking for.


04-19-2005, 08:10 PM
Everything on the page you mention is enclosed in either <center></center> tags or in an element that has align="center" as an attribute. Doing just this would still take up the whole page at any resolution. However, key elements are given the width of 750 so that total width will never exceed that.

04-19-2005, 11:24 PM
Hum . . . ok, I think I understand.

How would I set the maxium size of expansion to 750 pixels?


Q-Man -- Brandon

04-20-2005, 12:35 AM
For example, in a table:

<table width="750"><tr><td></td></tr></table>