| Vertically align table
|
Hetzel

msg:3890252 | 10:57 pm on Apr 10, 2009 (gmt 0) | Is there a way to vertically center a table? I don't want the content inside the table to be vertically centered (<td valign="middle">), but the entire table. I know you can align the table width, like this: <table width="700" height="700" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="bground_trans.png"> </td> </tr> </table> So is there a html code to vertically center the table also? Thanks a lot [edited by: eelixduppy at 5:35 pm (utc) on April 13, 2009] [edit reason] disabled smileys [/edit]
|
rocknbil

msg:3890322 | 1:43 am on Apr 11, 2009 (gmt 0) | This was mentioned recently [webmasterworld.com] and one solution is Dead Centre [webmasterworld.com] originally posted here by SuzyUK. FYI, valign="middle" is the default behavior of a table cell in most browsers, no need to specify it, and valign is also deprecated as is nowrap, width, and height.
|
blueocto

msg:3895738 | 10:06 pm on Apr 19, 2009 (gmt 0) | I would assume the best solution is to use css to control the padding/margin for the placement of the table within your webpage?
|
|
|