Use CSS to design HTML table column to align the text at the bottom
Use CSS to design the bottom-alignment technique of the text in the HTML table field, which is the same as the technique used in the previous article " Text-top alignment in the HTML table field ". Both use the built-in vertical-align property of CSS . Control, the parameter value bottom of the vertical-align attribute can be used to set the downward alignment of the elements in the table field. Whether it is to align the text in the table field up or down, it is indispensable for organizing web pages. The effect of CSS vertical-align bottom is equivalent to the effect of traditional HTML Table's valign bottom, which can align the text in the field vertically downwards. The new generation of browsers support vertical-align bottom is quite common. Use CSS to design HTML table column text alignment example
<tr>
<td style="vertical-align:bottom;" >This column text Align bottom </td>
<td valign="bottom" >The text in this column is aligned bottom </td>
<td>The text in this column is not aligned</td>
</tr>
</table>
Align the text in this column below | Align the text in this column below | The text in this column is not aligned |
Post a Comment
0 Comments