Search code examples
htmlwidthcellcss-tables

How to fix a cell width in a table where width = 100%


I would like to know if it's possible, in a table where width=100%, and where each column width are % value, to get for the last column a fixed width?

If yes how?


Solution

  • The short answer would be no, not with CSS in a simple way. It is quite troublesome to mix fixed and relative width for obvious reasons.

    There is however a new CSS3 feature calc() that can be used to let the browser calculate the proper width.

    Notice Unfortunately it is still just experimental, and has limited browser support.