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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <thead> valign-Eigenschaft

valign-Eigenschaft legt die vertikale Ausrichtung des Inhalts der <thead>-Elemente fest. HTML5 The valign attribute of <thead> is not supported. Please use CSS instead.

 HTML <thead> Tag

Online-Beispiel

Stellen Sie den Inhalt von <thead> vertikal ausgerichtet am Boden aus:

<table style="width:100%;" border="1">
 <thead valign="bottom">
  <tr>
    <th height="50">Babi-Puppe-Hersteller</th>
    <th height="50">Babi-Puppe-Typ</th>
  </tr>
  </thead>
  <tr>
    <td>Barbie Prinzessin</td>
    <td>6Gelenkige Barbie-Puppe</td>
  </tr>
  <tr>
    <td>Barbie Prinzessin</td>
    <td>12Gelenkige Barbie-Puppe</td>
  </tr>
</table>
Testen Sie es heraus ‹/›

Browser-Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the valign attribute.

Definition and Usage

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

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

Syntax

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

Attribute Value

ValueDescription
topAlign content upward.
middleAlign content to the center (default value).
bottomAlign content downward.
baselineAlign content to 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 illustration below.

When the text size is different, bottom vs. baseline illustration:

valign="bottom"

valign="baseline"

 HTML <thead> Tag