PDA

View Full Version : Table



Scriptr
Feb 29th, 2012, 06:08 AM
I have a table:


<table cellspacing="0">
<thead>
<tr>
<td colspan="2">
<img src="hp_hdr.jpg" />
</td>
</tr>
<tr>
<td width="426">
<img src="wildWed.png" />
</td>
<td style="width: 336px; height: 192px">
<img src="elephants.png" />
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<table class="cal">
<tr>
<td colspan="7" style="text-align: center">
February 2012
</td>
</tr>
<tr>
<td>Su</td>
<td>Mo</td>
<td>Tu</td>
<td>We</td>
<td>Th</td>
<td>Fr</td>
<td>Sa</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
</tr>
<tr>
<td>12</td>
<td>13</td>
<td>14</td>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
</tr>
<tr>
<td>19</td>
<td>20</td>
<td>21</td>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
</tr>
<tr>
<td>26</td>
<td>27</td>
<td>28</td>
<td>29</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</td>
<td>
<img src="etickets.gif" /><br />
<img src="hpwebuser.gif" />
<img src="sider.png" />
</td>
<td>
<span style="background-color: #000; color: #fff; font-weight: 900;">RECENT MEDIA RELEASES</span><br />
<div style="background-color: #aaa; color: #555;">
Riverbanks Spreads its wings with New Bald Eagle Exhibit<br />
<hr/>
March for Meals at Riverbanks Zoo and Garden<br />
<hr />
Riverbanks Offers Wildly Different Gift Ideas for Valentine's Day
</div>
</td>
</tr>
</tbody>
</table>

and that throws an error: Row 3 has more than row 2.
It needs to look like
_________
|_________|
|____|____|
|__|___|__|

I know I can't use fractional colspans, so what do I do?

And it has to be a single table.

abduraooft
Feb 29th, 2012, 06:49 AM
How about
<table width="500" border="1">
<tr>
<th colspan="5" >&nbsp;</th>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2">&nbsp;</td>
<td colspan="2">&nbsp;</td>
</tr>
</table>