html coding question
#2
Originally Posted by ryn004
Is there a way you can vertically align a table to the center of the page? I know it can be done horizontally.
#3
Scooby Regular
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes
on
0 Posts
<html>
<body>
<table border="1" width="100%" height="100%">
<tr>
<td width="100%" valign="middle" align="center">
HELLO
</td>
</tr>
</table>
</body>
</html>
Yuk though
<body>
<table border="1" width="100%" height="100%">
<tr>
<td width="100%" valign="middle" align="center">
HELLO
</td>
</tr>
</table>
</body>
</html>
Yuk though
#5
Scooby Regular
try this
<table width=100% height=98%>
<tr><td>
<table width=750>
<tr><td>Content here</td></tr>
</table>
</td></tr>
<table>
This should align your 750 pixel table to the centre of the page horizontally and vertically.
<table width=100% height=98%>
<tr><td>
<table width=750>
<tr><td>Content here</td></tr>
</table>
</td></tr>
<table>
This should align your 750 pixel table to the centre of the page horizontally and vertically.
Thread
Thread Starter
Forum
Replies
Last Post
Scott@ScoobySpares
Full Cars Breaking For Spares
61
11 January 2021 03:08 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
blockhead
Subaru Parts
19
07 November 2015 11:50 PM