JSFiddle link showcasing the issue.
When resizing the window to trigger a scrollbar due to the table reaching its minimum size, various problems arise:
- The window cuts into the bottom padding of the
<main>
element without displaying the scrollbar. - The scrollbar only appears when cutting into the content of the table (purple).
- The
<body>
section (yellow) falls short during scrolling, revealing the<html>
section (green).
The goal is to have a table that maximizes its height.
By setting min-width:100%
in the <body>
element, it prevents falling short while scrolling. However, achieving full-height children within it seems challenging.