English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de Referência HTML

大全 de etiquetas HTML

Propriedade valign do tbody do HTML

A propriedade valign especifica o alinhamento vertical do conteúdo dentro do elemento <tbody>.

 HTML <tbody> tag

Exemplo Online

Alinhar verticalmente o conteúdo dentro do elemento <tbody> até o fundo:

<table border="1">
  <tr>
      <th>Livros de Programação em Linguagem de Programação</th>
      <th>Preço</th>
  </tr>
  <tbody valign="bottom">
    <tr>
      <td>PHP Basic Tutorial</td>
      <td>$50</td>
    </tr>
    <tr>
      <td>Java Programming Thoughts</td>
      <td>$80</td>
    </tr>
  </tbody>
</table>
Teste e veja ‹/›

Navegador compatível

IEFirefoxOperaChromeSafari

All mainstream browsers support the valign attribute.

Definition and usage

HTML5 The valign attribute of <tbody> is not supported. Please use CSS instead.

The valign attribute specifies the vertical alignment of the content within the <tbody> element.

Syntax

<tbody valign="top|middle|bottom|baseline">

Attribute value

ValueDescription
topAlign the content upward.
middleAlign the content in the center (default value).
bottomAlign the content downward.
baselineAlign with the baseline. The baseline is a fictional line. In a line of text, most letters are based on the baseline. The baseline value sets all table data in the line to share the same baseline. The effect of this value is often the same as the bottom value. However, if the text sizes are different, the baseline effect is better. Please see the following illustration.

If the font sizes are different, bottom vs. baseline illustration:

valign="bottom"

valign="baseline"

 HTML <tbody> tag