How do I specify in HTML or CSS the absolute minimum width of a table cell

前端 未结 7 1795
渐次进展
渐次进展 2020-12-24 10:39

Summary

What\'s the best way to ensure a table cell cannot be less than a certain minimum width.

Example

I want to ensure that all cells in a ta

7条回答
  •  时光说笑
    2020-12-24 11:35

    I know this is an old question but i thought I'd share something that wasn't mentioned (Although pretty simple in concept..) you can just put a

    inside the table (in one of the 's or something) and set the
    to min-width. the table will stop at the
    's width. Just thought I'd throw that out there in case somebody comes across this on google. Also, I'm not so sure about how min-width is handled in I.E6. but that has already been covered in another answer.

提交回复
热议问题