Adjust table column width to content size
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 :)