I would like to optimize my website for the iPhone X (and above). By default, there is a safearea that I want to change.
Everything on my website should have this safearea, so I gave the whole body
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
But I got some fullscreen background images I don't want this padding to apply to.
padding: 0;
doesn't work.
How do I "negate" this padding for my background images? I also tried it with
body:not (.background) { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);}
but it also didn't work.
I attach a fiddle so you can see what the structure of my code is. Only problem is: you will only see this on an iPhone X or above, not in the devtools.
Thank you very much. If you need further information, please let me know.