Home > Software engineering >  safe-area-inset-bottom not working on ios 15 safari
safe-area-inset-bottom not working on ios 15 safari

Time:08-16

I'm trying to get my website to fit inside my phone screen. I have tried many variations of env(safe-area-inset-bottom) and constant(safe-area-inset-bottom) but both always return 0px (I've been using an app called Keyboard goes past URL bar What I want the keyboard to look like

CodePudding user response:

I think I made it work using -webkit-fill-available the other day which respects safe area.

body {
    min-height: -webkit-fill-available;
}
  • Related