Jump to content

Embedded Data block too wide on mobile

Recommended Posts

Hello,

I have an embedded data block (iframe) on my site that is showing results from a form. The block is fine on pc, however it is too wide for the mobile version.

The code is:

<iframe width="600" height="371" seamless frameborder="2" scrolling="YES" src="https://docs.google.com/spreadsheets/d/e/2PACX-1vT8TawtcQ0HoaFQMbqwx6WCTwVv2E-J5dL-tXyTHVP_i9XdydFajnohmGyFEBuccRcuQfWec6-Yd2jF/pubchart?oid=817034620&amp;format=interactive"></iframe>

 

I have tried adjusting the width, however it just cuts the info off. 

This is a really important part of my site, so appreciate assistance on making sure the chart in the iframe is visible on mobile! 

Thank you!

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You can add this code under your iframe code

<style>
  @media screen and (max-width:767px) {
    iframe[src*="google"] {
    	width: 100% !important;
      height: auto !important;
    }
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.