You are here: Re: vertical-align: center « HTML « IT news, forums, messages
Re: vertical-align: center

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация