i use fill available in chrome and it's working perfectly but not in firefox. here's the fiddle : fiddle why does it not working? please help.
.container {
background: steelblue;
height: 100%;
height: -moz-available; /* WebKit-based browsers will ignore this. */
height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
height: fill-available;
width: 100%;
width: -moz-available; /* WebKit-based browsers will ignore this. */
width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
width: fill-available;
}
for firefox you must set height:'100%' for body and html elements as follows:
html, body {
height: 100%;
}
.container {
height: 100%;
min-height: -moz-available; /* WebKit-based browsers will ignore this. */
min-height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
min-height: fill-available;
}
this worked for me. I hope this can help you.