change ResizeTable function to dynamic set div's margin and max-width max-height according td width and height;
add @media directive in main.css to change font-size according window width.