|
-
Dec 20th, 2000, 04:25 AM
#1
Thread Starter
Member
I can't figure out how to place a table in the middle of a browser. Centering horizontally is easy enough, but I need the table to be centered vertically too.
I want this to work regardless or browser, resolution, and size of browser window.
Thanks in advance.
-
Dec 20th, 2000, 06:52 AM
#2
Fanatic Member
Hi N*G*Evangelion
use an outer table to place the table you want to centralise.
Code:
<html>
<head>
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="100%">
<tr align="center" valign="middle">
<td>
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Hope this helps
Ian
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
-
Dec 20th, 2000, 07:30 AM
#3
Thread Starter
Member
Thanks for the reply.
I did try to use that method previously, but Netscape doesn't support the height attribute of the table tag - so it doesn't work - even in NS6.
If anyone has another way that is browser independent then please post your reply.
Thanks again.
-
Dec 20th, 2000, 07:32 AM
#4
Fanatic Member
I tried that page in NS before I posted and it worked fine.
Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|