Jump to content

Recommended Posts

On 10/25/2021 at 3:19 PM, Ciodensky said:

Yes. I was able to inject the code below but here's the result looks weird.

The shopify below went too low. And, I would like to make the 2 column logos centered horizontally.

Appreciate your help very much.

Screen Shot 2021-10-25 at 4.16.13 PM.png

Screen Shot 2021-10-25 at 4.17.12 PM.png

Can you check password? It is incorrect

my web: https://www.xystema.com

password: 0612

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
  • 1 month later...

Hi @tuanphan,
What about a 2 column view on mobile and 3 column view on tablet (when your original design is 4 columns)?
I've tried the following code, but only get the first half right:

@media screen and (max-width:767px) {
div#page-section-??? .span-12 {
.span-3 {
    width: 50% !important;
    float: left !important;
  margin-bottom: 0 !important;
}
.span-3:nth-child(2n+1) {
    clear: left !important;
}}}

@media screen and (max-width:1200px) {
div#page-section-??? .span-12
.span-4 {
    width: 33.333% !important;
    float: left !important;
}
  .span-4:nth-child(2n+1) {
    clear: left !important;
}}

 

Edited by nicolusse88
Link to comment
3 hours ago, song said:

Hello there, could you please teach me how to display two column on mobile?

Here is the link

https://www.no-boundaries.co.uk/memberships

As you see, the icon and description becomes up and down but it's side to side on the PC.

 

1809579280_2021-12-219_11_11.thumb.png.4c05b5eaa6a45eb0e0287f4fc8a29f87.png854476454_2021-12-219_13_35.thumb.png.2588e6e977927ee4c950ebd60d9066e3.png

 

 

You can try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61beb761ad8d292abaec3142"] .sqs-layout  .span-4 {
    width: 50% !important;
    float: left !important;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
1 hour ago, nicolusse88 said:

Hi @tuanphan,
What about a 2 column view on mobile and 3 column view on tablet (when your original design is 4 columns)?
I've tried the following code, but only get the first half right:

@media screen and (max-width:767px) {
div#page-section-??? .span-12 {
.span-3 {
    width: 50% !important;
    float: left !important;
  margin-bottom: 0 !important;
}
.span-3:nth-child(2n+1) {
    clear: left !important;
}}}

@media screen and (max-width:1200px) {
div#page-section-??? .span-12
.span-4 {
    width: 33.333% !important;
    float: left !important;
}
  .span-4:nth-child(2n+1) {
    clear: left !important;
}}

 

Can you share the link that directs to that page? So we can take a look

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

@bangank36, here is the link: maisonmariet.fr/shop-articles-en-cuir-1.

Never mind what I said about the 4 column design, it's actually not a smart solution. Although, now I'm experiencing issue with the tablet and mobile view because I can't get the 2 column design to work properly with the following code:

@media screen and (max-width:960px) {
div#page-section-??? .span-12 {
.span-4 {
    width: 50% !important;
    float: left !important;
}
.span-3:nth-child(2n+1) {
    clear: left !important;
}}}

 

Link to comment

@nicolusse88 Try remove this code

@media screen and (max-width: 960px) {
    div#page-section-61c1e1fd0b468b2ee43fa6e5 .span-12 .span-4 {
        width:50% !important;
        float: left !important
    }

    div#page-section-61c1e1fd0b468b2ee43fa6e5 .span-12 .span-3:nth-child(2n+1) {
        clear: left !important
    }
}

and use this new code

/* Mobile 2 items */
@media screen and (max-width:767px) {
div#page-section-61c1e1fd0b468b2ee43fa6e5 .span-12>.row:nth-child(-n+2) {
    width: 50% !important;
    float: left !important;
}
div#page-section-61c1e1fd0b468b2ee43fa6e5 .span-12>.row:nth-child(3) .span-4 {
    width: 50% !important;
    float: left !important;
}
}
/* tablet 3 items */
@media screen and (max-width:1024px) and (min-width:768px) {
div#page-section-61c1e1fd0b468b2ee43fa6e5 .span-12 .span-4 {
        width:33.33% !important;
        float: left !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
  • 6 months later...
5 hours ago, becmorris said:

Hey @tuanphan

Any chance you could give me a hand getting the text blocks in the black  section to sit 2 column on mobile.
I've tried your solution for others and I can't get it to work.

https://guppy-lobster-z4aa.squarespace.com/

pw: squarespace

image.thumb.png.8c9571147dfa0a4110002e94452ec192.png

Try this CSS. Also your site has a huge white space on right of screen (mobile)

@media screen and (max-width:767px) {
div#page-section-62c24c7f64c52c697ebd80c6 .span-6 .span-3 {
    width: 50% !important;
    float: left !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
17 hours ago, tuanphan said:

Try this CSS. Also your site has a huge white space on right of screen (mobile)

@media screen and (max-width:767px) {
div#page-section-62c24c7f64c52c697ebd80c6 .span-6 .span-3 {
    width: 50% !important;
    float: left !important;
}
}

 

thanks,
That has worked for the first 4. But the bottom 4 are sitting in a different row and are still in a single coloum stack. Still can't get the code to behave.

I've fixed the white space - thanks.
 

new url is melaleuca.squarespace.com

pw: squarespace

 

Link to comment
2 hours ago, becmorris said:

thanks,
That has worked for the first 4. But the bottom 4 are sitting in a different row and are still in a single coloum stack. Still can't get the code to behave.

I've fixed the white space - thanks.
 

new url is melaleuca.squarespace.com

pw: squarespace

 

Try this new code

@media screen and (max-width:767px) {
div#page-section-62c24c7f64c52c697ebd80c6 .span-3 {
    width: 50% !important;
    float: left !important;
}
div#page-section-62c24c7f64c52c697ebd80c6 .span-3:nth-child(2n+1) {
    clear: left;
}
}

 

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
4 hours ago, tuanphan said:

Try this new code

@media screen and (max-width:767px) {
div#page-section-62c24c7f64c52c697ebd80c6 .span-3 {
    width: 50% !important;
    float: left !important;
}
div#page-section-62c24c7f64c52c697ebd80c6 .span-3:nth-child(2n+1) {
    clear: left;
}
}

 

Amazing!

thankyou.

Link to comment
  • 5 weeks later...

Hi @tuanphan, I tried the codes above and this has worked on one of my pages and the other it brings the second column down the page. How can I fix this? Ideally I'd like the images to be aligned with each other. And any chance you know how to align the top of images on tablet so it doesn't look jagged?

www.karitonsorbetes.com

pw: chinatown

image.thumb.png.aabe32d255c962e9bedaa4048ac836be.png

Screen Shot 2022-08-05 at 4.06.23 pm.png

Link to comment
1 hour ago, Theresamo said:

Hi @tuanphan, I tried the codes above and this has worked on one of my pages and the other it brings the second column down the page. How can I fix this? Ideally I'd like the images to be aligned with each other. And any chance you know how to align the top of images on tablet so it doesn't look jagged?

www.karitonsorbetes.com

pw: chinatown

image.thumb.png.aabe32d255c962e9bedaa4048ac836be.png

Screen Shot 2022-08-05 at 4.06.23 pm.png

Which page are you referring to?

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
On 8/5/2022 at 4:14 PM, Theresamo said:

Hi @tuanphan I am referring to all the flavours pages, Gelato, Sorbet etc.

To make them align, you need to adjust recreate layout

for example this page https://www.karitonsorbetes.com/gelato

First, add image block 1, 2, 3, 4

Next, add 1 Line Block

Next, add image 5,6,7,8

Next, add 1 Line Block

...

Final remove all Line Blocks

image.thumb.png.33f23c4811bba55a3298eb35cca78998.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
On 8/8/2022 at 4:00 PM, Theresamo said:

Hey @tuanphan thankyou so much, that worked! The CSS code for two columns on mobile isn't working for me, it works on some and then it becomes one column. Any ideas on how this can be fixed?

Screen Shot 2022-08-08 at 7.00.06 pm.png

Which CSS did you use?

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
  • 1 year later...
16 hours ago, EdwinLindberg said:

Hey @tuanphan
 

I want to make a 2 collums view for my 'Project' page - only for the mobile view. I've tried the different codes above but nothing seems to work out for me, can you please help me out?

Can you share link to Project page?

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

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.