Jump to content

Reducing space between projects on mobile view

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://lukespindler.com/portfolios

Hi. I'm trying to reduce the space between two projects on my portfolio page when using mobile view. I need these projects to sit side by side. I have already reduced the space on the grid to 5px and I'm happy with the desktop view. When I switch to phone view the two projects spread out again. 

I should mention I have already added some code so that the two projects stay side by side and don't stack when in mobile view. 

Any help would be greatly appreciated. Thanks!

Link to comment
  • Solution
1 hour ago, LarrySpindler said:

Site URL: https://lukespindler.com/portfolios

Hi. I'm trying to reduce the space between two projects on my portfolio page when using mobile view. I need these projects to sit side by side. I have already reduced the space on the grid to 5px and I'm happy with the desktop view. When I switch to phone view the two projects spread out again. 

I should mention I have already added some code so that the two projects stay side by side and don't stack when in mobile view. 

Any help would be greatly appreciated. Thanks!

try

@media only screen and (max-width: 640px) {
	.portfolio-grid-basic .grid-item {
        width: 49%;
    }
}

 

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

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.