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

I need to create this using table library. set_heading only adds one row heading I need two.

Code:
<thead>
<tr>
  <th>head1<th>
  <th>head2<th>
<tr>
<tr>
  <th>head1<th>
  <th>head2<th>
<tr>
</thead>
Reply
#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




Theme © iAndrew 2016 - Forum software by © MyBB