Jump to content

3-c-table


egturnkey

Recommended Posts

Hello Friend,

 

can anyone please help me how to make such table that has 3 (1 + 3x2 )

 

 

i'm not asking for style or color or space i just asking about the code meks such structure

 

thanks in advance

 

 

FIXED....

 


<table width="586" height="60" border="1" cellpadding="2" cellspacing="2">
  <tr>
    <td width="273" height="20"> </td>
    <td width="142"> </td>

  </tr>
  <tr>
    <td height="20"> </td>
    <td> </td>
  </tr>
  <tr>
    <td height="20"> </td>
    <td> </td>
  </tr>
</table>

 

THREAD TO BE CLOSED ... THANKS

Link to comment
https://forums.phpfreaks.com/topic/176370-3-c-table/#findComment-929650
Share on other sites

I'm not sure your solution will do what you expect.  In FF 3.5.3 it only shows two columns.  To make a third column which covers multiple rows, you add it to the first row like this:

<table width="586" height="60" border="1" cellpadding="2" cellspacing="2">
  <tr>
    <td width="273" height="20"> </td>
    <td width="142"> </td>
<td width="120" rowspan="3"> </td><!-- ADD THIS CELL -->
  </tr>
  <tr>
    <td height="20"> </td>
    <td> </td>

  </tr>
  <tr>
    <td height="20"> </td>
    <td> </td>

  </tr>
</table>

the "rowspan" attribute causes the cell to cover the specified number of rows in the table. Then you do NOT include the <TD></TD> for that column in the following cells.

Link to comment
https://forums.phpfreaks.com/topic/176370-3-c-table/#findComment-929680
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.