Help With Aspect Ratio and Mobile Responsiveness
-
Hi there.
Me again, with another issue with aspect ratio and mobile responsiveness.
On the link that I need help with (bottom of post), I’ve applied some CSS code that I researched; it works perfectly for mobile responsiveness and scaling in other instances (for example, YouTube videos, Prezi, Powerpoint, etc). I’ve watched LOTS of videos, read quite a few tutorials, and tried everything that was suggested. However, I’m still having issues.Here’s the issue: if you view the page in the full desktop or even tablet configuration, it looks fine. However, once you start shrinking it down after a certain point, despite the fact that the aspect ratio remains as it should, the screen and functionality become unusable: you can’t scroll, you can’t click on any of the nav buttons on the embedded content within that iframe. Have a look and you’ll understand what I mean.
What could I be doing wrong?
How can I fix it?Here’s the CSS code I wrote, which was taken from one of the tutorials I saw. Again, this works in other cases, but not this particular content in the iframe.
.responsive2 { overflow: hidden !important; padding-top: 35px !important; padding-bottom: 56.25%; height: 0; position: relative !important; } .responsive2 iframe #story-map { position: absolute !important; top:0 !important; left: 0 !important; width: 100% !important; height: 100% !important; }
And here is the html embed code:
<div class="responsive2"> <iframe width="100%" height="800" frameborder="0" scrolling="yes" margin="0 0 5% 5%" id="story-map" src="https://na-alii.maps.arcgis.com/apps/MapJournal/index.html?appid=c37ca5637eb045c8921731a730d0d647"></iframe> </div>
Additionally, if you’d like to see what mobile responsiveness looks like without the CSS code, you can click here. You’ll notice that the responsiveness looks great until you get down to mobile size. At that point the left navigation or “story” pane disappears at some point – I’m trying to avoid it doing that with the aspect ratio that I’ve applied in the previous example.
Could this just be an issue with the ArcGIS (the content inside the iframe embed) system?
I hope that makes sense. If not, please feel free to ask questions.
And thank you so much for your help.
This is such an amazing community!- This topic was modified 2 years, 7 months ago by . Reason: Added the html embed code for iframe
- This topic was modified 2 years, 7 months ago by . Reason: added details and clarifications
The page I need help with: [log in to see the link]
- The topic ‘Help With Aspect Ratio and Mobile Responsiveness’ is closed to new replies.