I thought it would be nice to use relative units to start a new project. When I worked on this, I checked the chrome emulation to make sure everything worked well on these devices, and it looked good.
Then I pushed him to the hero, and it looked good on my macbook, but when I really downloaded it on my iPad, I wanted to throw it out of the window ...
#bannerTop { position:relative; text-align: center; width:100vw; height:70vh; min-height: 70vh !important; max-height:70vh !important; background-image: asset-url('skycloudsalpha.jpg'); background-repeat: no-repeat; background-position: 50% 75%; z-index:-1; }
I use VH units. I suspect this could be a problem?
Some other problem may occur, but I'm not sure how to debug my problem, because everything looks good on the emulator, but not on the device itself. I have spent about three hours on this now and really appreciate some help.
Thanks!
html css ios ipad viewport-units
Peege151
source share