Jump to content

Embedded google docs shows up too large when displayed on mobile

Recommended Posts

  • Replies 4
  • Views 942
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
On 4/19/2023 at 1:22 AM, NicPi said:

Thank you but unfortunately it is not working.

ah, I have a typo in the code, use this new code

@media screen and (max-width:767px) {
iframe[src*="embedly"] {
    width: 100% !important;
    height: 900px !important;


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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Thanks tuanphan. It still looks awkward to be honest.

Also, the embedded file now overwrites the "style shape" at the bottom of the page. 

I made an attempt reducing the height's pixels and this helped somewhat, but the content remains difficult to view on mobile devices.

To provide more context, the text and pictures in the document are aligned with right and left margins on desktop, but on mobile devices, the text becomes narrower while the title (which has a larger font size) and pictures retain their size, requiring users to scroll left and right to see the content. Although I tried applying the CSS to the document, this issue persisted.

As a temporary solution, I used CSS to hide the file on mobile devices, but I realize that this is not an optimal solution.

Thank you again for your help.

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.