Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Table

  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    106
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Table

    I have a table:
    Code:
    <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.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    How about
    Code:
    <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>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •