Answers for "css table auto width"

5

html table td width

<tr>
    <td style="width:70%">January</td>
    <td style="width:30%">$100</td>
</tr>
Posted by: Guest on September-05-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
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