I am facing a challenge with a div containing a Bing map that needs to stretch to fill the entire height of the page. While I have successfully used container-fluid
for the width, adjusting the height is proving tricky due to the fixed heights of the navbar and footer elements. Changing the window height can sometimes result in the map being partially covered by the footer or navbar, especially if the width changes causing line breaks in the text.
The navbar is located at the top of the page while the footer is pinned to the bottom. I aim to prevent the appearance of scrollbars and anchor the map div between the navbar and footer. Is there a method to maintain a consistent distance of, let's say, 10px from the element above and below? This would allow the map to expand or shrink accordingly.
Any tips on achieving this using Bootstrap and/or CSS?