Jump to content

Reduce column count on mobile

Go to solution Solved by Lesum,

Recommended Posts

Posted

title says it all. i have my image gallery set to 5 columns on desktop. on mobile the columns are set to 2, but I'd like this to be 1:

mattdeckerart.com/portfolio/visualization

how would i go about this?

also, is there accessible documentation on how to identify desired parameters myself in the future? I have basic knowledge, and I'm guessing this case is a media query for either columns (easy enough), or image width?

 

desktop.JPG

mobile.jpg

  • Replies 2
  • Views 963
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution
Posted (edited)

@decker You can adjust the column count for mobile using media query. Add this code under Website > Pages > Website Tools > Custom CSS

@media screen and (max-width: 767px) {
	.gallery-grid-wrapper {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

 

Edited by Lesum

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.