Encountering a minor issue with Bootstrap as I attempt to cover the entire height of the browser window when the content is insufficient. Utilizing Bootstrap within Orchard CMS, in case that impacts the situation.
The problem is illustrated in the image below
The page layout is quite simple:
<body style="background-color: #b0a2b0;">
<div id="layout-wrapper" style="margin: 0px auto -75px; padding: 0px 0px 75px;">
<div class="container">
.... stuff ...
</div>
<div class="container">
... other stuff
</div>
</div>
<div id="footer" style="height: 75px;">
<div class="container">
</div>
</div>
</body>
html
, body
, and the #layout-wrapper
all have a height set to 100%. My initial solution was to include an additional container and resize it accordingly. However, this presents challenges when the window resizes or there are elements on the page showing or hiding, affecting the available height.
Although I attempted setting the filler div's height to 100%
, I noticed that it surpasses the footer, extending beyond the page length and causing the footer to move upwards while scrolling down.
The desired outcome is to have a footer fixed at the bottom and the page at full height even amidst resizing or element visibility changes.
Any suggestions?