Answers for "table width 100"

0

fix table height html

<div id="mainHolder" style="overflow: auto; max-height: 400px;">
    <table>
    ... Lots of data ...
    </table>
</div>
Posted by: Guest on March-18-2021
1

give table width 100%

<table style = "width:100%">
          <tr>
              <th>A</th>
              <th>B</th>
              <th>C</th>
          </tr>
          <tr>
          	<tb>a</tb>
          	<tb>b</tb>
          	<tb>c</tb>
          </tr>
      </table>
Posted by: Guest on July-09-2021
2

html table full width

<table style="width: 100%;">...</table>
Posted by: Guest on September-05-2021
0

how to set table data width in css

<table>
  <tr>
    <th>header 1</th>
    <th>header 234567895678657</th>
  </tr>
  <tr>
    <td>data asdfasdfddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddasdfasdfasdf</td>
    <td>data 2</td>
  </tr>
</table>
Posted by: Guest on August-18-2021

Browse Popular Code Answers by Language