Jump to content

Creating two portfolio columns in mobile version

Recommended Posts

  • Replies 3
  • Views 565
  • Created
  • Last Reply
Posted
On 4/23/2021 at 6:34 PM, Billy1996 said:

Site URL: https://giraffe-fife-xnsh.squarespace.com/work

Hi,

I have tried all suggested code to apply two columns to a portfolio for mobile version but none of them seem to work. I was wondering if other code may be preventing it from working but would love some guidance!

Thanks,

Billy

Add to Design > Custom CSS

/* portfolio 2 columns mobile */
@media screen and (max-width:767px) {
div#gridThumbs {
    grid-template-columns: repeat(2,minmax(0,1fr)) !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!)

Posted

That is perfect thank you so much Tuanphan!!!

For some reason the text overlay wont appear on mobile version (the hover being a sort of fake click) do you have any advice on how to overcome that/if it is possible to have text below just for the mobile version?

Thanks again!

Posted
On 4/27/2021 at 3:54 AM, Billy1996 said:

That is perfect thank you so much Tuanphan!!!

For some reason the text overlay wont appear on mobile version (the hover being a sort of fake click) do you have any advice on how to overcome that/if it is possible to have text below just for the mobile version?

Thanks again!

Remove above & add new code

/* portfolio 2 columns mobile */
@media screen and (max-width:767px) {
div#gridThumbs {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    grid-row-gap: 120px;
}
.portfolio-text {
    position: relative !important;
    opacity: 1 !important;
    padding-left: 0 !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!)

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.