You can set table-layout: fixed;
on your table. Using this you can override the browser’s automatic column resizing. Then column widths will be set based on the widths that you assign to the cells in the first row.
More Related Contents:
- Set cellpadding and cellspacing in CSS?
- Word-wrap in an HTML table
- Table fixed header and scrollable body
- How to deal with page breaks when printing a large HTML table
- HTML/CSS: Making two floating divs the same height
- Make a div fill the height of the remaining screen space
- Fixed header table with horizontal scrollbar and vertical scrollbar on
- Add border-bottom to table row
- How to remove unwanted space between rows and columns in table?
- How to make Scrollable Table with fixed headers using CSS [duplicate]
- How can I set the max-width of a table cell using percentages?
- Add a horizontal scrollbar to an HTML table
- using text-align center in colgroup
- How can I truncate table cells, but fit as much as content possible?
- Setting table column width
- How to force table cell content to wrap?
- Table scroll with HTML and CSS [duplicate]
- How to center the contents of an HTML table?
- How to hide Table Row Overflow?
- Min-width and max-height for table attributes
- Linethrough/strikethrough a whole HTML table row
- Why is box-sizing acting different on table vs div?
- Table overflowing outside of div
- Border around tr element doesn’t show?
- How to completely remove borders from HTML table
- with fixed and scrollable [duplicate]
- CSS: display:block; vs display:table;
- Yet Another Divs vs Tables issue: Forms
- Styling the last td in a table with css
- Setting max-height for table cell contents