Table editing
-
Hi,
I was trying to edit a table using Mozilla composer. I copy pasted the html into the html box. It does appear as a table with some of the formatting, however I can’t get it to display the colour background I wanted – grey – and that’s why I wanted the table for.
I’ve seen some blogs like this. How does one do it?
Any thoughts?
Thanks.
-
What method are you using to colour the background grey – class, style or old-style bgcolor? I know the first two are stripped out by the WordPress tag-filtering, but the last one may work?
-
other than the simplest of html i am hopeless in it. so when i wanted to put a table, i pasted the table from microsoft word to paint, saved it as jpeg, upload it to some photo hosting page, and link the image to my blog.
-
I think I’m using the style tag on the HTML.
<table
style="background-color: rgb(192, 192, 192); text-align: left; width: 561px; height: 60px;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td
style="background-color: rgb(204, 204, 204); vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
</tr>
</tbody>
</table>Maybe I’ll search for the manual “old” way to edit HTML and edit colour as you said before.
-
I betting that the theme is overriding the background in some way. This has come up before when we were talking about table borders. Try a couple of different themes. If you see the background color in some and not others, it’s the CSS.
-
Isn’t style information stripped out of tags when submitted drmike? You can check this ekarate by using the “Save and Continue Editing” button – if the style code vanishes that’s the problem.
Theme CSS shouldn’t be able to override inline stuff (unless it’s market !important I think?) as that should take precedence.
The “old fashioned” way of applying background colour is bgcolor. Apply it like this:
<table><tr><td bgcolor="#C0C0C0">text</td></tr></table>#C0C0C0 (that’s C-ZERO) is equivalent to 192,192,192. Unfortunately I can’t test this for you right now as the servers down.
Good luck!
-
Isn’t style information stripped out of tags when submitted drmike?
I was thinking that as well but wasn’t sure as I remembered the table border issue we had a few months ago. It worked for some themes but not others.
edit: Yup. Found the thread Styles are stripped for security. Have to add that one to the FAQ…
-
I had some unhappy experience when I wanted to add a table in a post. Using the rich-text editor (Visual mode), I pasted a table, then I switched to Code mode (to change the font size of the text in the table) and switched back to Visual mode. I found that only the first row of the table was kept – other rows were missing!
-
Have you solved this problem yet? I’m asking because others have used html tables and not reported this same difficulty.
-
Well adding html code via the visual tab may have something to do with it. It’s code and should have been added in on the code tab.
-
I’ve had this difficulty, whether I’ve used the code editor or the visual editor. As far as I know it’s still happening, so I just avoid tables now. For whatever reason, tables generated by quizzes seem to be okay, MOST of the time. Sometimes they leave out rows, though. And yes, I reported it about six months ago.
- The topic ‘Table editing’ is closed to new replies.