The question seems to be simple but I am not getting it done.
I have a web project I am working on with body’s overflow set to hidden. So I cannot put contents in the page with more than the height of the available space or else they will be hidden.
Now I have four graphs/charts to show on a page each taking equal space. I have tried to put each in a table of 2 rows and 2 columns. But no matter what you try, table’s height always overflows the page height and the contents become hidden. I could though control the width of the cells by giving each 50% width and setting table-layout: fixed;
How can I implement it? Using div or using table? Please help me create div or table cells with exactly the same size in height and width; and not overflow the page height.
SOLUTION – adjust to your own need.
here is the equivalent table method with the same CSS as the div method