incamedia
Member
Posted 7 months ago #
I have a table at http://www.themoderndaywizard.com/press in which I want the cell text to be centred. I have CSS as follows but the text stays left justified:
.wp-table-reloaded-id-7 td {
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #180E4A;
text-align: center;
vertical-align: middle;
}
http://wordpress.org/extend/plugins/wp-table-reloaded/
Masino Sinaga
Member
Posted 7 months ago #
Have you tried with this following order?
.wp-table-reloaded-id-7 td {
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #180E4A;
vertical-align: middle;
text-align: center;
}
Hi,
the problem is that your theme contains code to move the text to the left again. You should be able to change this by giving the centering a higher priority. For that just add the !important keyword to the code, like this:
text-align: center!important;
Regards,
Tobias