Soldato
I've coded a table in Wordpress using the HTML editor. Out of 11 rows I have 7 where the text applies to two columns so rather than repeat the text in both cells I want to have the first cell span two columns and have the text centred between the two columns.
I have added
to each of the rows I want spanned across two columns but in both the preview and proper view of the page the so called spanned cells display the text to the left of the span, i.e. they appear in-line with the text unique to the first column. This makes it look like all the spanned columns aren't and that the second column is empty and devoid of text in the 7 rows needing spanning.
I've tried WP-Table-Reloaded but that didn't help me achieve what I need. It also styled the table up something ugly so I've dumped that. I just want a plain, un-styled table with text in spanned cells appearing center aligned so that its obvious it applies to both columns. I'd prefer not having to install a plugin for this as I've hard-coded the table but I'll gladly listen to any advice anyone can offer me on this issue.
The table code so far is:
I have added
Code:
"colspan="2"
I've tried WP-Table-Reloaded but that didn't help me achieve what I need. It also styled the table up something ugly so I've dumped that. I just want a plain, un-styled table with text in spanned cells appearing center aligned so that its obvious it applies to both columns. I'd prefer not having to install a plugin for this as I've hard-coded the table but I'll gladly listen to any advice anyone can offer me on this issue.
The table code so far is:
Code:
<table>
<tbody>
<tr>
<td>Time</td>
<td>Key Stage 3</td>
<td>Key Stage 4</td>
</tr>
<tr>
<td>8:40am</td>
<td align="center" colspan="2">Registration</td>
</tr>
<tr>
<td>9:00am</td>
<td colspan="2" align="center">Lesson 1</td>
</tr>
<tr>
<td>10:00am</td>
<td colspan="2">Lesson 2</td>
</tr>
<tr>
<td>11:00am</td>
<td>Assembly</td>
<td>Break</td>
</tr>
<tr>
<td>11:15am</td>
<td>Break</td>
<td>Assembly</td>
</tr>
<tr>
<td>11:30am</td>
<td colspan="2">Lesson 3</td>
</tr>
<tr>
<td>12:15pm</td>
<td colspan="2">Lunch</td>
</tr>
<tr>
<td>1:00pm</td>
<td colspan="2">Lesson 4</td>
</tr>
<tr>
<td>2:00pm</td>
<td colspan="2">Lesson 5</td>
</tr>
<tr>
<td>3:00pm</td>
<td colspan="2">End of school day</td>
</tr>
</tbody>
</table>