0

I want to fix the height of a table which is going to show a dynamic string, the length of the string is variable, but the problem the row of the table is growing or minimizing according to the string to display my CSS :

    #subscriberVehicle {
       width: 100%;
       height: 5%;
    }

   #subscriberVehicle table {
      table-layout: fixed;
       height: 5%;
       width: 100%;
    }
  #subscriberVehicle .col-3 {
     padding-top: 125px;
     height: 30%;
     width: 25%;
      max-height: 10px;     
   } 

and the HTML file :

     <table id="attestation" class="row">
  <tr>
    <td class="col">
      <div id="subscriberVehicle" class="block">
        <table class="data">
          <tr style="height: 10px">
            <td class="col-3 content"><%= subscriber.entity.address %></td>
          </tr>
        </table>
      </div>
    </td>
</table>
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
chou
  • 253
  • 3
  • 14

0 Answers0