Jump to content

Layout 4 Columns as 2 Columns on Mobile

Recommended Posts

Site URL: https://www.gavindesantis.com/videonew

Hello,

I am trying to prevent the mobile layout from showing all 4 of my columns as 1 column with a bunch of rows. I have researched this on google and the Squarespace forums but I cannot find an exact solution for my website. I have played with margins, padding, and width percentages though I cannot get everything to align or resize properly.

This is the new page I'm working on where I have the issue for mobile.

https://www.gavindesantis.com/videonew

The code I'm working with, which was a header injection is below.

<style>
@media only screen and (max-width: 767px) {
.content-wrapper { 
   width: calc(100%/3) !important;
  }
}
</style>

Thank you very much.

Link to comment
  • Replies 3
  • Views 1k
  • Created
  • Last Reply
1 hour ago, gavindesantis said:

Site URL: https://www.gavindesantis.com/videonew

Hello,

I am trying to prevent the mobile layout from showing all 4 of my columns as 1 column with a bunch of rows. I have researched this on google and the Squarespace forums but I cannot find an exact solution for my website. I have played with margins, padding, and width percentages though I cannot get everything to align or resize properly.

This is the new page I'm working on where I have the issue for mobile.

https://www.gavindesantis.com/videonew

The code I'm working with, which was a header injection is below.


<style>
@media only screen and (max-width: 767px) {
.content-wrapper { 
   width: calc(100%/3) !important;
  }
}
</style>

Thank you very much.

You should remove the code and replace with this, it make sure the column on mobile keep 1/3 of width

Add the snippet below to Design-Custom CSS
 

@media only screen and (max-width: 767px) {
        section[data-section-id="5ff523221e9d50058e860c7c"] .row .sqs-col-4 {
          width: 33.33% !important;
          float: left !important;
        }
        section[data-section-id="5ff6b26590f0197fa6727ede"] .row .sqs-col-4 {
          width: 33.33% !important;
          float: left !important;
        }
}

image.png.5aa70b9e7cca5f271bbb3df291b3a44a.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
10 hours ago, bangank36 said:

You should remove the code and replace with this, it make sure the column on mobile keep 1/3 of width

Add the snippet below to Design-Custom CSS
 


@media only screen and (max-width: 767px) {
        section[data-section-id="5ff523221e9d50058e860c7c"] .row .sqs-col-4 {
          width: 33.33% !important;
          float: left !important;
        }
        section[data-section-id="5ff6b26590f0197fa6727ede"] .row .sqs-col-4 {
          width: 33.33% !important;
          float: left !important;
        }
}

image.png.5aa70b9e7cca5f271bbb3df291b3a44a.png

 

Thank you so much. I wish Squarespace made this easier.

Link to comment

@gavindesantis I think the layout on tablet is not good. Do you want to adjust something?

image.thumb.png.fdba43a25a0f95836d054ff438ee52f7.png

and video page

image.thumb.png.247bcd56db2b5e413df9d73aaab01f2e.png

and you haven't change SEO Title, so browser tab name still shows "Contact 1"

https://www.gavindesantis.com/contact

and huge white space (tablet)

image.thumb.png.45afbe88d7aab45ff02a5ce056dd29dd.png

 

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.