English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The align attribute specifies the horizontal alignment of the content inside the <tfoot> element. Internet Explorer cannot handle the 'justify' value correctly in tables, and it will center the content.
Align the content inside the <tfoot> element to the center:
<table style="width:100%;" border="1"> <tr> <th>Programming Language Books</th> <th>Price</th> </tr> <tr> <td align="right">PHP Basic Tutorial</td> <td>$30</td> </tr> <tr> <td align="left">Java Programming: Thought in Action</td> <td>$80</td> </tr> <tfoot align="center"> <tr> <td>Total</td> <td>$110</td> </tr> </tfoot> </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 <tfoot> align attribute is not supported. Use CSS instead.
The align attribute specifies the horizontal alignment of the content within the <tfoot> element.
<tfoot align="left|right|center|justify|char">
Value | Description |
---|---|
left | Left-align the content (default value). |
right | Right-align the content. |
center | Center-align the content. |
justify | Stretch the line so that each line can have an equal width (as in newspapers and magazines). |
char | Align content to a specified character. |