We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Custom Multicolumn layout - responsive

Custom Multicolumn layout - responsive

back2natureheal
Excursionist
22 0 5

I have a custom multicolumn layout here with 3 images, I need these images to fill the full width of the section and also be responsive:

This is what it looks like now:

back2natureheal_0-1731501595823.png

 

This is what it should look like:

back2natureheal_1-1731501595825.png

 

I also need there to be a scroll option on mobile so you can scroll through the images.

 

my store: https://92f949-38.myshopify.com/

Replies 4 (4)

Moeed
Shopify Partner
7764 2082 2568

Hey @back2natureheal 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.custom-multicolumn-boxes {
    justify-content: space-between !important;
}
</style>

RESULT:

Moeed_0-1731501880611.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


namphan
Shopify Partner
2777 358 407

Hi @back2natureheal,

Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

.custom-multicolumn-boxes {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: 1.5rem;
    -webkit-overflow-scrolling: touch;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
back2natureheal
Excursionist
22 0 5

Hi there,

THanks so much for your reply. The scroll works

but

now it is scrolling on desktop, I need the 3 boxes to be fullscreen on desktop, and scroll only on mobile:

back2natureheal_0-1731845181952.png

https://92f949-38.myshopify.com/

namphan
Shopify Partner
2777 358 407

Hi @back2natureheal,

Please add code:

@media screen and (min-width: 750px) {
.custom-multicolumn__item {
    width: calc(100% / 3);
    max-width: calc(100% / 3);
}
.custom-multicolumn__item img {
    width: 100%;
}
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com