I want to place text at center and at the bottom of the cell in table. How can I do this?
This is what I want:
I want to place text at center and at the bottom of the cell in table. How can I do this?
This is what I want:
valign="bottom" might work.
http://www.w3schools.com/tags/att_td_valign.asp
But I think that's deprecated.
So you should do it in CSS with:
<td style="vertical-align:bottom;">your text</td>
valign
is depreciated and should not be used. –
Mcallister table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
td{
vertical-align:bottom;
text-align:center;
}
<table>
<tr>
<td rowspan="3" width="100%">bottom and center</td>
</tr>
<tr>
<td rowspan="1">TOTAL</td>
</tr>
<tr>
<td rowspan="1">TOTAL</td>
</tr>
</table>
use style vertical-align:bottom;text-align:center; these can be helpful for your table.
© 2022 - 2024 — McMap. All rights reserved.