How can I style table to be full width of container and make the cells use percentage of the width?

后端 未结 1 1958
眼角桃花
眼角桃花 2021-02-11 13:05

This is my html. The table below is inside a container div which has fixed width of 670px. Now I am not sure how to proceed to make this table capture the full width of containe

相关标签:
1条回答
  • 2021-02-11 13:59

    I think your problem is that you have display: block overriding the default display mode for the table (which is table). Remove that, and then try applying width: 100% to the table.

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