My website has a body background size set, which works well on Android and Windows devices. The background size is intended to be 85% width and 5% height of the body. However, when loading the site on an iPhone, the height appears much larger than 5%. It seems to be around 50% of the viewport which is unexpected. I have tried using the -webkit prefix but it doesn't seem to resolve the issue. Could there be something specific to iOS and Safari causing this discrepancy? If anyone has insight into what might be happening or how to fix it, I would greatly appreciate your help. Thank you in advance.
CSS
body
{
background: -webkit-linear-gradient(left, white, white, #98AEC4, white, #98AEC4, white, white) fixed;
background-repeat: no-repeat;
background-position: top center;
background-size: 85% 5%;
}
I am curious about how different browsers calculate the body background height. It seems like other browsers are using the viewport height, but on iPhone the parameters do not align properly. Any insights on this behavior would be useful in resolving the issue.