My website has a lovely gradient background on the html tag in css, while the body tag showcases a seamless pattern repeating on both the x and y axes.
Everything was looking great until I checked the website on an iPad/iPhone in portrait mode, where the screen height is much taller than its width.
Normally, on standard screens or in landscape mode on mobile devices, the footer of my page would mark the end of the website. However, when the screen's height exceeds its width, the seamless pattern stops repeating, leaving an empty space with the gradient background after the footer.
I've attempted to set both html and body heights to 100%, but it doesn't seem to solve the issue. Even trying to use JavaScript to dynamically adjust the body's height to match the html's height proved unsuccessful.
If anyone has any advice or solutions for me, I would greatly appreciate it! Thanks in advance!
EDIT:
Check out this JSFiddle.
In the JSFiddle, the background gradient in the html repeats as expected, whereas the white background color in the body does not. I understand that setting the body's height to 100% would likely resolve this issue, but I'm showcasing what happens on a mobile device even with the body at full height.