tlujan0001
05-14-2018
09:11 AM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Scrollbars being created on Google Docs iFrame
I've read through many posts, and still can't seem to get this right. Here is the code i've inserted into my html block:
<div class="googledoc-responsive"> <iframe src="https://docs.google.com/spreadsheets/d/1BQxqbxMUDiUJJtYkEVZq3UwEWNzFuk5LzOGPNXxY0Xg/pubhtml?gid=571588927&range=A114&chrome=false&single=true&headers=false" overflow="hidden" width="300" height="350" frameborder="0" scrolling="no" allowfullscreen=""></iframe> </div>
and here is the CSS I've inserted in the theme's main.less section:
.googledoc-responsive{ overflow:hidden; padding-bottom:75%; padding-top:35px; position:relative; height:0; background: #000000; overflow:hidden; } .googledoc-responsive iframe{ left:0; top:0; height:320; width:284; position:absolute; background: #000000; }
and yet, when I view on mobile, scrollbars still magically appear. Any thoughts?
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
1 REPLY 1
Adam7

05-14-2018
12:33 PM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Just a guess, but the content of the iframe probably has a min-width which is set larger than your defined width for mobile.
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report