I am facing a challenge with my website.
Essentially, my webpage has the <html>
set to overflow:hidden
, with two horizontal navbars, a fixed vertical sidebar on the left, and a central div with the height: 90%
property.
Edit: The container div now has the overflow: auto
property.
The content is dynamically loaded into the container area through AJAX. This content primarily consists of tabular data, and the goal is to allow the container area to scroll when there is an overflow of content. Everything functions correctly on a standard monitor with a regular height. However, when viewed on a laptop, the last 1-2 rows are 'hidden' due to html overflow.
If I reduce the original height: 90%
to a lower value, the issue is resolved. But when I switch back to a larger screen with the reduced height, the content area is not fully covered.
Is there a CSS solution to address this problem? If not, is it possible to handle it through a JavaScript event triggered by screen resizing?