Welcome Guest, Not a member yet? Register   Sign In
Table Row Height Intermittent
#6

(03-16-2022, 11:34 AM)jdmdigital Wrote:
(03-16-2022, 10:25 AM)ignitedcms Wrote: Is it possible to paste the html and css here and I can have a look?

Absolutely...

**CSS**

Code:
table.item-table{width:100%;border-collapse:collapse;border-spacing:0;margin-bottom:10px;font-size:12px}

table.item-table tr:nth-child(2n-1) td{background:#F5F5F5}

table.item-table th{padding:5px 0;border-bottom:1px solid #606060;white-space:nowrap;text-align:left}

table.item-table th.text-right{text-align:right}

table.item-table th.text-center{text-align:center}

table.item-table td{padding:5px 0}

table.item-table .invoice-sums{text-align:right;}

**HTML**
Code:
<table class="item-table">
        <thead>
        <tr>
            <th class="item-name">Item #</th>
<th class="item-desc">Description</th>
            <th class="item-amount text-center">Qty<br>Ordered</th>
            <th class="item-amount text-center">Qty<br>Shipped</th>
<th class="item-amount text-center">Qty<br>Backordered</th>
            <?php if ($show_item_discounts) : ?>
<th class="item-discount text-right"><?php _trans('discount'); ?></th>
<?php endif; ?>
            <th class="item-price text-right"><?php _trans('price'); ?></th>
<th class="item-total text-right"><?php _trans('total'); ?></th>
        </tr>
        </thead>
        <tbody>

             
<tr>
                <td><?php echo $itemSKU->item_SKU; ?></td>
                <td><?php echo nl2br(htmlsc($item->item_name)); ?></td>
                <td class="text-center">
                    <?php echo number_format($item->item_quantity); ?>
                </td>
                <td class="text-center">
                    <?php echo number_format($item->item_qntshiped); ?>
                </td>
                <td class="text-center">
                    <?php echo number_format($item->item_qntbackord); ?>
                </td>
                <td class="text-center">
                    <?php echo format_currency($item->item_price); ?>
                </td>
                <?php if ($show_item_discounts) : ?>
                    <td class="text-right">
                        <?php echo format_currency($item->item_discount); ?>
                    </td>
                <?php endif; ?>
                <td class="text-right">
                    <?php echo format_currency($item->item_total); ?>
                </td>
            </tr>
        <?php } ?>

        </tbody>
        <tbody class="invoice-sums">

        <tr>
            <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                <?php _trans('subtotal'); ?>
            </td>
            <td class="text-right"><?php echo format_currency($invoice->invoice_item_subtotal); ?></td>
        </tr>

        <?php if ($invoice->invoice_item_tax_total > 0) { ?>
            <tr>
                <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                    <?php _trans('item_tax'); ?>
                </td>
                <td class="text-right">
                    <?php echo format_currency($invoice->invoice_item_tax_total); ?>
                </td>
            </tr>
        <?php } ?>

        <?php foreach ($invoice_tax_rates as $invoice_tax_rate) : ?>
            <tr>
                <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                    <?php echo htmlsc($invoice_tax_rate->invoice_tax_rate_name) . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?>
                </td>
                <td class="text-right">
                    <?php echo format_currency($invoice_tax_rate->invoice_tax_rate_amount); ?>
                </td>
            </tr>
        <?php endforeach ?>

        <?php if ($invoice->invoice_discount_percent != '0.00') : ?>
            <tr>
                <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                    <?php _trans('discount'); ?>
                </td>
                <td class="text-right">
                    <?php echo format_amount($invoice->invoice_discount_percent); ?>%
                </td>
            </tr>
        <?php endif; ?>
        <?php if ($invoice->invoice_discount_amount != '0.00') : ?>
            <tr>
                <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                    <?php _trans('discount'); ?>
                </td>
                <td class="text-right">
                    <?php echo format_currency($invoice->invoice_discount_amount); ?>
                </td>
            </tr>
        <?php endif; ?>

        <tr>
                <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                    Shipping
                </td>
                <td class="text-right">
                    <?php echo format_currency($invoice->invoice_shipping); ?>
                </td>
        </tr>

<tr>
            <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                <b><?php _trans('total'); ?></b>
            </td>
            <td class="text-right">
                <b><?php echo format_currency($invoice->invoice_total); ?></b>
            </td>
        </tr>
        <tr>
            <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                <?php _trans('paid'); ?>
            </td>
            <td class="text-right">
                <?php echo format_currency($invoice->invoice_paid); ?>
            </td>
        </tr>
        <tr>
            <td <?php echo($show_item_discounts ? 'colspan="7"' : 'colspan="6"'); ?> class="text-right">
                <b><?php _trans('balance'); ?></b>
            </td>
            <td class="text-right">
                <b><?php echo format_currency($invoice->invoice_balance); ?></b>
            </td>
        </tr>
        </tbody>
    </table>

I can't really test that, can you paste just dummy HTML without any PHP with the issue you are facing.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply


Messages In This Thread
Table Row Height Intermittent - by jdmdigital - 03-15-2022, 08:36 AM
RE: Table Row Height Intermittent - by ignitedcms - 03-15-2022, 11:38 AM
RE: Table Row Height Intermittent - by jdmdigital - 03-16-2022, 09:32 AM
RE: Table Row Height Intermittent - by ignitedcms - 03-16-2022, 10:25 AM
RE: Table Row Height Intermittent - by jdmdigital - 03-16-2022, 11:34 AM
RE: Table Row Height Intermittent - by ignitedcms - 03-16-2022, 12:22 PM
RE: Table Row Height Intermittent - by jdmdigital - 03-16-2022, 01:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB