PDA

View Full Version : HTML help.


Grae
18-11-2005, 19:52
Grae needs HTML help
he's made himself a little website, but he needs to know one thing.

What's the code for aligning a table in the centre of the page? I've managed to get it in the middle of the horizon, but I can't seem to get it to move into the exact middle of the page.

I thought the code was <table align="center" valign="center">

but the valign part doesn't work, please help me out.

Grae
18-11-2005, 22:24
http://geocities.com/evilgrae/

Arcana
21-11-2005, 23:13
you could simply use the <center> tag, but <table Align="center"> should work too.

Zidane007nl
21-11-2005, 23:29
That's not what he means. He wants to center it horizontal and vertical.
My way is to make another table outside of the other tables and make the height 100%. It's handy with splash pages, but also with pages using iframes.

Insert this after <body>:
<table border="0" width="100%" height="100%">
<tr>
<td width="100%">
And this before </body>:
</td>
</tr>
</table>

Hope that helpes.

Grae
22-11-2005, 00:52
Zidane, you are a lifesaver, thank you so much! Thread closed now, thank you, bye bey! ^_^