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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is an example with CSS and inline
styleattributes:http://jsfiddle.net/j2h3xo9k/
EDIT: The
valignattribute is deprecated in HTML5 and should not be used.