Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical alignment

Status
Not open for further replies.

GooeyHand

Technical User
Jun 25, 2002
17
CA
hey guys,

i'm stuck on a simple question. what would be the tag to vertically align a table? i know you can do it that within a cell with <td valign=....>, but i want to know how to make the whole table be aligned in the center of the page on a vertical plane.

thanks
 
Enjoi!!!


Code:
<html>
<head>
<title>This page is CENTERED</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
<table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
  <tr>
    <td align=&quot;center&quot; valign=&quot;middle&quot;>&nbsp;</td>
  </tr>
</table>
</body>
</html>

sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top