I need to create an HTML table which has fixed column widths, say 200px for each column. If the table exceeds the horizontal width of the browser viewport then there should be horizontal scroll to view the columns which are off-screen. As the table is being dynamically generated from a database there will be an indeterminate number of columns each time, so the total table width cannot be defined in advance.
In summary, I am looking for a way to just set a fixed column width and then tell the table to horizontally scroll if it runs out of horizontal space. Any suggestions would be appreciated!