Jump to content

Display two columns in Simple List on mobile view only

Go to solution Solved by Lesum,

Recommended Posts

Hello,

My website has a section with logos of previous clients I worked with. Client logos looks fine on desktop. However it looks too large on mobile. I am using a Simple List to display the logos. Is it possible to display the client logos in two columns instead of just one on mobile? 

Link to comment
  • Solution

Here's a code snippet to display two columns on mobile view:

@media only screen and (max-width: 480px) {
	.user-items-list-simple {
		grid-template-columns: 1fr 1fr !important;
	}
}

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?

Link to comment

Hi, you can change the image width in simple list with this code. Lets assume you want to reduce the width of the third image from 100% to 90%. 

.user-items-list-simple li:nth-child(3) .list-image {
	width: 90% !important;
}

nth-child(3) part of the code indicates third image in the simple list. You can change the number according to your website. 

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?

Link to comment
  • 1 month later...

@Lesum Do you have any idea how to decrease the padding between those two columns on mobile view for a simple list?

 

ALSO WONDERING RE SIMPLE LISTS.... (On desktop and mobile view)

Do you know how to stop the gaps between the rows (I imagine this is due to the length of the entry into the opposing column.)

Screenshot 2023-09-21 at 5.16.56 pm.png

Screenshot 2023-09-21 at 5.02.02 pm.png

Link to comment
On 9/21/2023 at 2:49 PM, dani2 said:

@Lesum Do you have any idea how to decrease the padding between those two columns on mobile view for a simple list?

 

ALSO WONDERING RE SIMPLE LISTS.... (On desktop and mobile view)

Do you know how to stop the gaps between the rows (I imagine this is due to the length of the entry into the opposing column.)

Screenshot 2023-09-21 at 5.16.56 pm.png

Screenshot 2023-09-21 at 5.02.02 pm.png

#1. Use this CSS code

@media screen and (max-width:767px) {
.user-items-list-simple ul {
	grid-gap: 10px 10px !important;
}
}

#2. Can you share link to page where you use this?

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.