By Yash Mittal
I am creating a table inside a tab. I want to set the width of tab to the width of media screen but keep the
width of table fixed to
max-width of div should be
400px. When the table does not fit into the div, it should display a horizontal scrollbar.
The div is successfully showing a horizontal scrollbar. But, when I resize the window, the scrollbar along with table is hiding inside the div. I want to display the scrollbar according to media width.
The example will become clear: https://jsfiddle.net/2wzqhycy/1/
Source: Stack Overflow