Jump to content

Lightbox Form on Mobile Loads too Wide

Recommended Posts

Site URL: https://www.winkeyewear.com

Hello,  I've added a form to a product that should be filled out when the product is added to cart.  It works fine on desktop but on mobile it loads too wide and causes issues when you try to resize it or scroll around it.  For now it is only attached to this one product but we need it to work on all of them.

https://www.winkeyewear.com/ophthalmic-products/kirk-amp-kirk-cady

Sonora Template (Brine family)

Squarespace 7.0

effect is present on iphones on both chrome and safari.  I can't confirm on non iOS devices.

Is there a way we can modify the width of the form lightbox for mobile using CSS?

thanks all.

IMG_AA9A87036309-1.jpeg

Link to comment
  • Replies 1
  • Views 894
  • Created
  • Last Reply

iPhone 5 seems fine. However you can add this code to Home > Design > Custom CSS to adjust lightbox width on mobile

@media screen and (max-width:640px) {
.collection-type-products .lightbox-content {
    max-width: 350px !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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.