Jump to content

Creating two portfolio columns in mobile version

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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!

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.