Setting the table column width to a fixed size regardless of the amount of text in its cells

I have to set a fixed width to the columns of my table without considering the amount of text in the cells. How can I achieve this?

Comments

  • Add a <div> tag inside <td>.

    <td><div style="width: 200px" >Your content</div></td>

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion