Table Header design in the middle row of the table

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 429

Table Header design in the middle row of the table

Post by Bishu »

I have created a simple table using the PHPMaker v11 table class

<table class="ewTable ewTableSeparate">
<thead>
<tr class="ewTableHeader">
<th>Particular</th>
<th>Sub Total</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total Income from Admission Fees Old Student</td>
<td>354100</td>
<td></td>
</tr>
<tr class="ewTableHeader">
<th>Total Income from Admission</th>
<th></th>
<th>361300</th>
</tr>
</tbody>
</table>

I want to have the same design of header including the bgcolor in the middle and last row of the table.
So I try using the <tr class="ewTableHeader"> but it does not become same.

Please kindly help me to make the same design in the header and some particular rows in the table.


mobhar
User
Posts: 11761

Post by mobhar »

Try this:

<div class="ewGrid">
<div id="gmp_help_categories" class="table-responsive ewGridMiddlePanel">
<table class="ewTable ewTableSeparate">
<thead>
<tr class="ewTableHeader">
<th>Particular</th>
<th>Sub Total</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total Income from Admission Fees Old Student</td>
<td>354100</td>
<td></td>
</tr>
<tr class="ewTableHeader">
<th>Total Income from Admission</th>
<th></th>
<th>361300</th>
</tr>
</tbody>
</table>
</div>
</div>


Bishu
User
Posts: 429

Post by Bishu »

The bgcolor is not showing in the row. It only change the fonts design.


mobhar
User
Posts: 11761

Post by mobhar »

What do you mean by "bgcolor not showing in the row"? That code above should work properly.

If you have more than one row before the aggregate row, then you will see the bgcolor properly (you will see the normal and alternate row color).


Post Reply