Jump to content

Portfolio layout changing on mobile (CSS)

Recommended Posts

Site URL: https://butterfly-teal-tjek.squarespace.com/

Hello, I want to use hover: fixed layout of portfolio on desktop, but on mobile device I want to use grid. I saw some websites and I know its possible, but I cant make it. I dont know how. Can you help me please?

There is one website where is it working: https://fongyu.co/

My website: https://butterfly-teal-tjek.squarespace.com/

Password: chlebasmaslem

Link to comment
34 minutes ago, PetrKlempa said:

Site URL: https://butterfly-teal-tjek.squarespace.com/

Hello, I want to use hover: fixed layout of portfolio on desktop, but on mobile device I want to use grid. I saw some websites and I know its possible, but I cant make it. I dont know how. Can you help me please?

There is one website where is it working: https://fongyu.co/

My website: https://butterfly-teal-tjek.squarespace.com/

Password: chlebasmaslem

I suggest using portfolio page. In addition to that, we add one more section (gallery section) that can be set only display on mobile and hide in desktop

Hope it makes sense 

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
3 minutes ago, bangank36 said:

I suggest using portfolio page. In addition to that, we add one more section (gallery section) that can be set only display on mobile and hide in desktop

Hope it makes sense 

Take a look here: https://fongyu.co/

There is exactly what I want. There is portfolio hover: follow cursor changing on grid with mobile version.

I want portfolio based on hover: fixed changing to grid with mobile version.

Link to comment
  • 10 months later...

Did you get an answer to this question? I really 

On 1/18/2022 at 3:39 PM, PetrKlempa said:

Take a look here: https://fongyu.co/

There is exactly what I want. There is portfolio hover: follow cursor changing on grid with mobile version.

I want portfolio based on hover: fixed changing to grid with mobile version.

Did you figure this out? I'm trying to do exactly the same thing. Thanks!

Link to comment
  • 5 months later...
On 6/2/2023 at 10:39 PM, gcerceo said:

@tuanphan I tried the link and code above and it did not work for me. It removed the entire section. I'm using portfolio grid:overlay on desktop, and would like to put the titles under the thumbnails on mobile since hover states aren't active on mobile.

www.grahamcerceo.com

Add this code to Design > Custom CSS

/* Mobile-Portfolio title under image */
@media screen and (max-width:991px) {
div#gridThumbs {
    display: block !important;
}
.portfolio-text {
    opacity: 1 !important;
    position: relative !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
On 6/7/2023 at 7:42 AM, gcerceo said:

@tuanphan great! When I add the font-size CSS to .portfolio-text, the font size doesn't change for some reason, size of p2

I'm also trying to tighten it up closer to the image, the line-height is enormous, especially when the portfolio-text is smaller.

Use this

/* Mobile-Portfolio title under image */
@media screen and (max-width:991px) {
div#gridThumbs {
    display: block !important;
}
.portfolio-text {
    opacity: 1 !important;
    position: relative !important;
}
.portfolio-text * {
	font-size: 10px !important;
	line-height: 20px !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

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.