If you try to set fixed width for the table columns or <td> by simply applying the width property it may not work, because the default table layout algorithm is automatic. Therefore, first change the table's table-layout property to fixed then the width property will have any effect.
The following example will set up fixed width for the table columns regardless of the amount of text in its cells. Let's try it out to understand how it basically works:
Use the CSS
table-layoutPropertyIf you try to set fixed width for the table columns or
<td>by simply applying thewidthproperty it may not work, because the default table layout algorithm is automatic. Therefore, first change the table'stable-layoutproperty tofixedthen thewidthproperty will have any effect.The following example will set up fixed width for the table columns regardless of the amount of text in its cells. Let's try it out to understand how it basically works:
need an explanation for this answer? contact us directly to get an explanation for this answer