The line
td img { text-align: center }
won’t work. It has to target the td instead: the td having an img element will have text-align: center. Can it be done in CSS 2.1?
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.
Can you use jQuery? If you can then you can use a jquery selector to add a class to the td that will center it.
something like this untested code;