AnthLovesJump5
08-08-2003, 03:34 AM
Hi! i have a site and its not the size of the browser window and i was just wodnering if there is a way to center everything so it will be in the center of the browser window... just in case i'll tell ya a lil' bit about how i have my site...
frist off there is a top banner that has all the links and stuff and then i have 1 frame where all the things open into.... lemme know if ya need anything else...
kittycat
08-08-2003, 03:42 AM
If you just want it centred horizontally, put <center> just after the body tag.
if you want it centred both horizontally and vertically, you could use the table approach:
<table>
<tr>
<td align="center" valign="center">
all your content
</td>
</tr>
</table>
It won't work if you use absolute positioning though.
AnthLovesJump5
08-08-2003, 03:53 AM
ouch :-(
i used absolute positioning.... so there is no way of centering it?
If you use style="position:absolute; top:50%; left:50%" it'll position the upper left corner in the middle of the screen.
Can't you put your entire layout in a table? ^^
AnthLovesJump5
08-08-2003, 03:19 PM
possibly..if i knew how! lol i'm a very big beginner! i've just been setting it up the same way each time and just copying everything from others i've done... so i dunno any other way... sometimes i just find stuff out by trying stuff... so i'll try what you said...
that didn't work the top banner went way over and the frame went over even farther so... i got an idea.. if anyone can help me please email me! here's my email address!
anthateens@aol.com
and please do email me!
Stormx
08-08-2003, 04:43 PM
eh...
Just read through the main site. It teaches u all u need to know about HTML