How do I get tables to display properly?
-
I use tables frequently in my blog and they would be easier to read if the border was visible. It looks great in the visual editor but the final product doesn’t display the border lines. Is there a work around for this? Thanks for your time.
–David
Blog url: http://dmcnic.wordpress.com/ -
Unfortunately, the borders are being stripped out by your theme’s stylesheet.
In this case, the only way around it would be to switch themes (you can preview them in the Appearance section to see how they handle tables) or set your own table CSS rules with a Custom Design upgrade: http://en.support.wordpress.com/custom-design/
-
Thanks for the suggestion. I upgraded my account by adding Custom Design. I am quite pleased! Not only do the borders show, but I can customize the tables in my blog without adding a large amount of html code. This will save me quite a bit of effort. Now if I can just figure out how to align the text to the right of each cell.
-
-
Not exactly, but here is what I currently have:
td {
border:solid black 1px;
text-align:right;
font-family:courier;
font-size:12pt;
}
I have eliminating everything except for the text-align line without success. That means I have conflicting css code somewhere else, right?
-
Correct. Try
td {
border:solid black 1px;
text-align:right !important;
font-family:courier;
font-size:12pt;
}
to see if that works (note the added !important) -
Okay, that worked. I have not seen the !important documented anywhere. Thanks for the assist!
-
- The topic ‘How do I get tables to display properly?’ is closed to new replies.