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

前端 未结 7 1797
渐次进展
渐次进展 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 <div> inside the table (in one of the <td>'s or something) and set the <div> to min-width. the table will stop at the <div>'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.

    0 讨论(0)
提交回复
热议问题