Weird scenes with WordPress tables

When I insert audio and video into a WordPress page or post, it always ranges left, though I would rather centre it on the page.

I get round this by creating a 3-column table, inserting white lettering in the left and right columns, and placing audio or video in the middle column, thus:

<table border="1">
<tbody>
<tr>
<td><span style="color:#ffffff;">aaaaaaaaaaaaaaaaaaaa</span></td>
<td>
<h3> Audio version:</h3>
</td>
<td><span style="color:#ffffff;">aaaaaaaaaa</span></td>
</tr>
</table>

This produces the following page (see here in edit/visual mode):

WPtables1

Now, the first weird thing:

Note that the table text has <table border=”1″>, but no border is shown. OK, I can live with that.

Now let’s look at a simpler table:

<table border="1">
<tbody>
<tr>
<td>
<h1>LEFT</h1>
</td>
<td>
<h1>RIGHT</h1>
</td>
</tr>
</tbody>
</table>

That displays the way I want it:

WPtables2

No table border, but that appears to be something we’ve got to live with.

Let’s add some text in one of the columns:

<table border="1">
<tbody>
<tr>
<td>
<h1>LEFT</h1>
</td>
<td>
<h1>RIGHT</h1>
<h2>Adding some text</h2>
</td>
</tr>
</tbody>
</table>

Now see what’s happened:

WPtables3

The heading in the left column has moved down. The obvious solution is to add the valign tag, yes?

The funny thing is that I’d already put the valign tags into the table when I created it:

<TABLE ALIGN=Left BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
<TR ALIGN=left VALIGN=top>
<TD ALIGN=left VALIGN=top ><h1>LEFT</H1></TD>
<TD ALIGN=left VALIGN=top ><H1>RIGHT</H1></TD>
</TR>
</TABLE>

But WordPress stripped them out:

<table border="1">
<tbody>
<tr>
<td>
<h1>LEFT</h1>
</td>
<td>
<h1>RIGHT</h1>
</td>
</tr>
</tbody>
</table>

If there’s a way to have both columns valign=top then I’ve been unable to find it.

And since tables are a fairly basic HTML thing, why doesn’t WP offer a way to create them without coding them by hand?

Just asking.

Advertisements

About Karl Dallas

Former BBC and IRN presenter, presenter of jazz, classical, movie and talk shows on Bradford Community Broadcasting, editor and presenter of VideoCaroline, "the best TV over the Seven Seas".
This entry was posted in Bad luck, Computer, Software, Uncategorized, WordPress.com. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s