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:
CSS:
td {vertical-align:bottom;text-align:center;}
example: http://jsfiddle.net/vKPG8/
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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With