I have a DIV which contains a large table of data, too wide for most users' monitors. I had it styled like this:
That way, it fit within the screen design, and if its too wide, the data just scrolls inside the DIV. But now, the client wants the screen to stretch to use as much of the user's monitor width as possible. So I recoded the screen design so that the page template uses all of the width.
I tried changing my CSS on the DIV to this:
However, now it forces the DIV to as wide as it needs to go to include all of the table data. The entire screen scrolls left-to-right now, the DIV itself is wider than the monitor. I also tried this, but the same thing happens
What I want, is for the DIV to stretch as far left-to-right as it can go without making the entire screen scroll (DIV same width as the user's monitor), and then the contents within that DIV should scroll (overflow:auto;) if the table is too wide to fit within the DIV. Is this possible? I don't see how I can set a specific width because I don't know the size of the user's monitor, how their document window is positioned, etc. And 100% seems to just make it stretch as far as it needs to go.