Adjust table column width to content size

半城伤御伤魂 提交于 2019-12-03 22:18:59
Rui Carneiro

The problem was the table width. I had used width: 100% for the table. The table columns are adjusted automatically after removing the width tag.

If you want the table to still be 100% then set one of the columns to have a width:100%; That will extend that column to fill the extra space and allow the other columns to keep their auto width :)

maybe problem with margin?

width:auto;
padding: 0px;
margin: 0px
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!