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> 

img

i want align left , right table @ same height.

bootply

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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -