(Really) Long Background Image Does Not Render on iPad Safari
Mobile Safari has limits to what size background images it will display before subsampling, you may be getting hit by this problem because of the size of your background:
The maximum size for decoded GIF, PNG, and TIFF images is 3 megapixels for devices with less than 256 MB RAM and 5 megapixels for devices with greater or equal than 256 MB RAM.
That is, ensure that width * height ≤ 3 * 1024 * 1024 for devices with less than 256 MB RAM. Note that the decoded size is far larger than the encoded size of an image.
see: Know iOS Resource Limits
Background image does not display on iOS
@Pete: I would use a media query to load a smaller image if the screen size isn't too large - not sure who has a screen resolution of 4000px so you may want to make them smaller anyway. not sure why your white one would work
Me: reducing from 4000w to 2000w did the trick, but i am not sure why. the white version displayed on iOS at 4000w.
Background image not showing in Safari
I converted the image format from jpeg to gif and it worked. So the final CSS is :
.bgMainpage{
background:url("../images/bg.gif") no-repeat scroll right top #000000;
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size:cover;
background-size: cover;
}
Related Topics
Background Images: How to Fill Whole Div If Image Is Small and Vice Versa
CSS @Font-Face Not Working in IE8
How to Reverse the Order of Columns in Bootstrap 4
iPhone Web App - Stop Body Scrolling
Chrome Renders Colours Differently from Safari and Firefox
Add Ellipses to Overflowing Text in Svg
Css: Are View Height (Vh) and View Width (Vw) Units Widely Supported
Changing an Input's HTML5 Placeholder Color with CSS Does Not Work on Chrome
Word-Wrap:Break-Word Not Working in IE8
CSS Display: Table Min-Height Not Working
How to Stop Jquery Mobile to Apply Styles to My Specific Form Elements
:Active CSS Selector Not Working for IE8 and IE9
Custom.CSS Has Stopped Working in 32.0.1700.76 M Google Chrome Update
Why Does My Django Admin Site Not Have Styles/CSS Loading
Pure CSS Multiple Stacked Position Sticky
How to Force Re-Render After a Webkit 3D Transform in Safari