PDA

View Full Version : Helpful Tip For Charts in Wordpress



anombon
12-16-2011, 03:59 AM
In case anyone has this issue, when I was making a wordpress site and I wanted to put in charts, I came up with the issue that it would not let me put vertical borders on it. I tried the usual HTML code border="1" etc. but it didn't work.

In Wordpress, your tables need to be styled like this:

<table style="width:200px;color:#804000;">
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:2px;">1</td>
<td style="border:1px solid #ccc;padding:2px;">2</td>
<td style="border:1px solid #ccc;padding:2px;">3</td>

The only drawback is that you need to do this manually by hand. I have a wordpress plugin Ultimate Tiny MCE, but it still uses the border="1" - not sure if there is an available plug-in that uses the new method.

If anyone could recommend a plug-in that allows vertical borders that would be great.

wpfox
01-24-2012, 08:30 AM
Why do you need a table for your charts? Do you plan to draw them as different-sized columns/rows?

lets4410
02-29-2012, 07:02 AM
Anyone know how to add a border to a paragraph of text, I know this should be easy but wordpress seems determined to make it difficult??