My goal is to have my website fill the screen on both sides when in landscape mode on IOS Safari, but I haven't found a solution that works.
I've included the following meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
, and also added:
@supports(padding:max(0px)) {
body, header, footer {
padding-left: min(0vmin, env(safe-area-inset-left));
padding-right: min(0vmin, env(safe-area-inset-right));
}
}
I've noticed that changing the background color of the body tag works, but I need my background images to fill the space.
Does anyone have any ideas or solutions?
UPDATE:
Here is a screenshot illustrating the issue: https://i.sstatic.net/Ga73L.jpg
Below is the CSS code:
div.et_pb_section.et_pb_section_6 {
background-position: center top;
background-image: url(https://XXXXXX.com/wp-content/uploads/2023/05/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d4b3a6b5a4bcbdb7f9a4b5a0a0b1a6ba94e6acfaa4bab3">[email protected]</a>),linear-gradient(180deg,#80b6d7 0%,#d2c5de 100%)!important;
}