• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.