Iphone safari not displaying...

User 564745 Photo


Registered User
51 posts

I have background images in rows - width 100% ,block, display static position, attachment with no repeat and size set to cover - now it works perfectly fine in IE and Chrome but in Safari on iphones it displays the image full scale if not zoomed in - any suggestions on a safari fix?

http://www.hooka-solutionsaustralia.com … index.html
User 103173 Photo


VP of Software Development
0 posts

For iOS, you need to switch the Attachment to Scroll on the lower breakpoints (the mobile ones) and leave it to Fixed on the higher ones.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 564745 Photo


Registered User
51 posts

hmmmm the attachment is fixed
User 2706435 Photo


Ambassador
444 posts

Try a test with an image less then 1024 wide. I remember there is some add issue with apple browsers and large background images. But your image is not large. But, try a smaller one anyway. May end up needing to use two small images if it works.
User 122279 Photo


Senior Advisor
14,652 posts
Online Now

I would definitely create a smaller version of the image(s) for use on small screens.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2706435 Photo


Ambassador
444 posts

Scott, are you sure it will work in IOS? I like to research things just so I know what to avoid on platforms I can't test. But this popular website says IOS won't support{ background-attachment: fixed}, and neither will Android browser or the Android Chrome browser. I read in a very old post dated years ago elsewhere that the IOS will ignore fixed. So in the class attributes one would give it local and underneath it give fixed (non-IOS browers update the local to fixed) That would mean custom css in the page headers for the page to define the class as fixed in order to define it twice.

http://caniuse.com/#search=background-attachment
User 103173 Photo


VP of Software Development
0 posts

Correction, what you want to do is for mobile breakpoints, change it from fixed to scroll. You will leave then it fixed on higher breakpoints. You can use the theme Scroll Portfolio as a example theme.

https://s11.postimg.org/qlq8300yr/Screen_Shot_2017_02_14_at_8_28_52_AM.png

https://s17.postimg.org/4jftfplen/Screen_Shot_2017_02_14_at_10_33_20_AM.png

Download:
https://www.dropbox.com/s/h9vadr9yu59l3 … l.rsd?dl=0
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.