Jump to content

Why does a messed up version of my mobile site show on a narrow desktop browser at 767px wide?

Go to solution Solved by Ziggy,

Recommended Posts

https://www.grdowntownmarket.com/
pw: Market4321

My website looks fine on a desktop, iphone, and ipad.

When I reduce the width of my Chrome window to 767px, a messed up version of my mobile site is shown, even though my CSS defines mobile view to occur at 640px. Is there a way to avoid the mobile site showing on desktop? It's frustrating because I thought I had all my bases covered.

CSS code parameters:

//mobile code
@media screen and (max-width: 640px) {
Mobile code here
}

//tablet code
@media screen and (min-width: 641px) and (max-width:1080px){
Tablet code here
}

Screen Shot 2024-01-08 at 3.40.42 PM.png

Edited by ryanbrinkerhoff
forgot attachment
Link to comment
  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

19 minutes ago, ryanbrinkerhoff said:

reduce the width of my Chrome window to 767px

The mobile break point in version 7.1 is 767px, not 640px, so at 767px the view has switched to the mobile layout. You can't adjust this and since it switches based on screen resolution you can't prevent it on desktop.

You may want to adjust your Custom CSS to account for that. Tablet is 768px up to a user-defined value since tablet view is the same layout as desktop.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
Posted (edited)

@Ziggy

Thanks! I adjusted my breakpoints but it still seems to snap to mobile view and look weird. Large vertical gaps between elements and misaligned objects. See attachments.

When I keep scaling the browser window, it eventually displays the correct mobile view at 520 px. What do I do about the widths between 767px and 520px? Is there a trick to tweaking things in that range?

Screen Shot 2024-01-08 at 4.09.34 PM.png

Screen Shot 2024-01-08 at 4.09.44 PM.png

Edited by ryanbrinkerhoff
tagging reply
Link to comment
  • Solution

This problem isn't as bad as when first launched, but have a look at this link and solution:

https://www.will-myers.com/articles/fixing-the-tablet-spacing-problem-in-squarespace-fluid-engine

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.