PDA

View Full Version : Centering Page all the time?


Squintz
08-14-2002, 05:50 PM
I want to take this site http://www.domainwebdesigns.com/centerHTML.html
and make it so that it centers itself in reltionship to the entire page...

I want the images and all the other content to remain the same size and simply :) want the focal point to remain center in relationship to the pages width...

Why you ask? so that it looks proportional in all browsers including AOL(GAYOL) POS

redhead
08-14-2002, 06:31 PM
If I am understanding you right (which I dont think am) you should put it in <div align="center"> tags...

or if you want it in the middle vertcally then you could use:

<style>
body {
vertical-align: center}
</style>

i think that should work any hows...

if not put it in a table like this:

<div align="center"><center>
<table height="100%">
<tr height="100%">
<td height="100%" valign="center">

Page...

</td>
</tr>
</table>
</center></div>

FYI the valid copyright stuff would be Copyright &copy; Year Name...eg: Copyright &copy; 2002 John Smith...

Squintz
08-14-2002, 07:16 PM
Actually you hit it on the nose...Table thing worked great

redhead
08-14-2002, 07:54 PM
:)

although... i notice a mistake in my coding...

<td height="100%" valign="middle"> is probably more correct, good to know it works anyways though.. ;)