English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The tbody align attribute specifies the horizontal alignment of the content within the <tbody> element.
Align content to the right within the <tbody> element:
<table style="width:100%; border="1"> thead> <tr> <th>Programming Language Books</th> <th>Price</th> </tr> </thead> tbody align="right"> <tr> <td>PHP Basic Tutorial</td> <td>$50</td> </tr> <tr> <td>JAVA Programming Thoughts</td> <td>$80</td> </tr> </tbody> </table>Test to see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
Note:IE cannot correctly handle the "justify" value; IE will process it as centered.
Note:Almost no browsers can correctly handle the "char" value.
HTML5 The <tbody> align attribute is not supported. Use CSS instead.
The align attribute specifies the horizontal alignment of the content within the <tbody> element.
<tbody align="left|right|center|justify|char">
Value | Description |
---|---|
left | Aligns content to the left (the default value for table data). |
right | Aligns content to the right. |
center | Centers the content (the default value for the th element). |
justify | Stretches the line so that each line can have equal width (as in newspapers and magazines). |
char | Aligns content to the specified character. |