Hi.I have a 12" iPad and the coding has no effect and I also have a 10" Samsung Galaxy tablet and the image in portrait view is wrong but in landscape it is correct!!!!
First: Maybe !impotrant should be added, like ... background-attachment: scroll !impotrant;. And I do not see that you applied this code.
Second: My code is designed for devices with a screen width of less than 991.98px. If the width of the screen of your device more, change this value in the code. This is all that you can do with your current layout.
But in general, your approach to creating this banner is erroneous and it should be redone - at least turn OFF the fixed background behavior. Then you will not need my code.
How fixed background works: when the background is fixed, the image is stretched in size of the screen of your device (width and height) but not in size of the block containing this bg image. And the IOS devices do not support this property at all.
Statistics: Posted by Pavel-ww — Tue Jan 16, 2024 7:22 am