2
I’m using:
<section class="parallax calltoaction section_padding_100"
style="
background-image: url('images/models_cover/landscapes.jpg');
background-size:100% 100%;
background-repeat: no-repeat;
">
When accessing through Chrome, firefox and safari via desktop works perfectly as in the image.
When accessing via Android Chrome browser, it works perfectly too.
But, when accessing via iPhone with the default browser or Chrome, it is as follows.
I already switched out the background-size:
for cover
and container
, but it’s still the same.
Just tried "cover" or "100% cover"?
– perozzo
Opa @Perozzo, yes buddy, already tested with the cover, the 100% cover, and the container. Gives in the same
– sNniffer
You can inform the other CSS attributes of this
<section>
? Maybe the problem is in them and not in the background.– Sam
It is very difficult to identify the problem without being able to verify it myself on an iPhone. But some research here may suggest some solutions. I would need to check the CSS better, but since you’re using Parallax, I imagine this background image should be receiving:
background-attachment: fixed;
I saw that can cause problems on iOS. Try to put abackground-attachment: scroll;
and checks the result.– Leon Freire
I don’t have Iphone to test. But check out this answer: https://stackoverflow.com/a/21456799/2570426
– viana