css - How to align Nested HTML tables to the same height -
i want align 2 nested table same height. placed inside of parent table.
html:
<table class="table table-condensed theme-font no-padding no-margin" cellpadding="0" cellspacing="0"> <tbody> <tr class="no-padding no-margin"> <td class="no-padding no-margin col-xs-6"> <table class="table table-condensed theme-font no-padding no-margin full-height border" cellpadding="0" cellspacing="0" rules="cols"> <thead> <tr> <th class="text-center border col-xs-4">particulars</th> <th class="text-center border col-xs-2">amount (dr.)</th> </tr> </thead> <tbody class="full-height"> {% a, v in pl_debit_ac_dict.iteritems %} <tr> <td class="no-top-bottom-border bold-font text-left">to {{ }}</td> <td class="no-top-bottom-border bold-font text-right">{{ v|floatformat }}</td> </tr> {% endfor %} </tbody> </table> </td> <td class="no-padding no-margin col-xs-6"> <table class="table table-condensed theme-font no-padding no-margin full-height border" cellpadding="0" cellspacing="0" rules="cols"> <thead> <tr> <th class="text-center border col-xs-4">particulars</th> <th class="text-center border col-xs-2">amount (dr.)</th> </tr> </thead> <tbody class="full-height"> {% a, v in pl_credit_ac_dict.iteritems %} <tr> <td class="no-top-bottom-border bold-font text-left">to {{ }}</td> <td class="no-top-bottom-border bold-font text-right">{{ v|floatformat }}</td> </tr> {% endfor %} </tbody> </table> </td> </tr> </tbody> </table>
i want align left , right table @ same height.
you can add height = 100%
no-margin
class this:
.no-margin{ margin: 0 !important; height: 100%; } .no-padding{ padding: 0 !important; } .border{ border: 1px solid !important; }
check bootply.
Comments
Post a Comment