I am using an HTML <table>
and I want to align the text of <td>
to the center in each cell.
How do I center align the text horizontally and vertically?
csshtmlhtml-table
I am using an HTML <table>
and I want to align the text of <td>
to the center in each cell.
How do I center align the text horizontally and vertically?
Best Answer
Here is an example with CSS and inline
style
attributes:http://jsfiddle.net/j2h3xo9k/
EDIT: The
valign
attribute is deprecated in HTML5 and should not be used.