How to set min-width in HTML table’s td with CSS?

Spread the love

To set min-width in HTML table’s td with CSS, we set the min-width property.

For instance, we write

<table style="border: 1px solid">
  <tr>
    <td style="min-width: 50px">one</td>
    <td style="min-width: 100px">two</td>
  </tr>
</table>

to set the min-width property to the min width we want for each cell.

Leave a Reply

Your email address will not be published. Required fields are marked *