I need to create an HTML table with a fixed column width, e.g. 200 pixels for each column. If the table exceeds the horizontal width of the browser window, then to view columns outside the screen, there must be a horizontal scroll. Since the table is dynamically generated from the database, an indefinite number of columns will be displayed each time, so the total width of the table cannot be determined in advance.
In general, I'm looking for a way to just set a fixed column width, and then say that the table scrolls horizontally if it ends out of horizontal space. We appreciate any suggestions!
source
share