4

define the columns in the invisible table

 2 years ago
source link: https://www.codesd.com/item/define-the-columns-in-the-invisible-table.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

define the columns in the invisible table

advertisements
7cSZn.png

The two tables are inside one div (please see code below for an cut out of the code from bottom table), I would like to make the first column of the bottom div invisible....any ideas? thanks for replies

 <table align="center" class="detailstable" style="width:100%">
         <tr>
                <th style="width:70%;"></th>
                <th style="text-align:left;">Summary</th>
                <th style="text-align:right;"></th>
         </tr>
         <tr>
                <th style="width:70%;"></th>
                <td style="text-align:left; width:100px;">Labour</td>
                <th style="text-align:right; width:100px;"><%: this.FormatMoney(LabourTotal)%></th>
         </tr>
        </table>


if you want to make it look like its 'merged' with the cell that contains the total value, use CSS 'border-right-style' on the desired cell, for example:

<th style="width:70%; border-right-style:none;"></th>


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK