Posted by Steve Pugh on 04/13/06 14:00
Allison McGhee wrote:
> I messed up this question what I meant to say was How can I do the
> equivalent of
> <table>
> <tr>
> <td valign="center>Img</td>
> <td valign="center">Header</td>
> </tr>
> </table>
There is no equivalent as valign="center" doesn't exist.
The only possible values of valign are top, middle, bottom and
baseline.
See http://www.w3.org/TR/html401/struct/tables.html#adef-valign
If you mean valign="middle" (which is the default anyway) then the CSS
equivalent is vertical-align: middle. Note that the vertical-align
property only applies to some elements, so if you are also replacing
your table cells with divs you can't use vertical-align in the same way
that you used valign.
Steve
[Back to original message]
|