Welcome Guest, Not a member yet? Register   Sign In
Table heading with multiple rows
#2

This is a snippet that I found on the web.

PHP Code:
<table>
 
 <col>
 
 <colgroup span="2"></colgroup>
 
 <colgroup span="2"></colgroup>
 
 <tr>
 
   <td rowspan="2"></td>
 
   <th colspan="2" scope="colgroup">Mars</th>
 
   <th colspan="2" scope="colgroup">Venus</th>
 
 </tr>
 
 <tr>
 
   <th scope="col">Produced</th>
 
   <th scope="col">Sold</th>
 
   <th scope="col">Produced</th>
 
   <th scope="col">Sold</th>
 
 </tr>
 
 <tr>
 
   <th scope="row">Teddy Bears</th>
 
   <td>50,000</td>
 
   <td>30,000</td>
 
   <td>100,000</td>
 
   <td>80,000</td>
 
 </tr>
 
 <tr>
 
   <th scope="row">Board Games</th>
 
   <td>10,000</td>
 
   <td>5,000</td>
 
   <td>12,000</td>
 
   <td>9,000</td>
 
 </tr>
</
table

The CodeIgniter html table has a table template so you would need to create your own table.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Table heading with multiple rows - by InsiteFX - 07-03-2017, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB