I've been looking for a way to size the main viewport in mobile to accommodate for the navigation bar at the bottom of the page. I want all the content to be visible in between the top of the page and the top of the navigation bar (CSS3 100vh not constant in mobile browser)
This code works for me in all desktop browsers, and all mobile browsers except for firefox
html,
body {
height: 100%;
}
#hero {
height: calc(100vh - calc(100vh - 100%));
background-color: aqua;
}
How come I'm getting different behaviour in firefox mobile? Thanks for looking