Answers for "how to set table data width in css"

CSS
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

Code answers related to "how to set table data width in css"

Browse Popular Code Answers by Language