Joanna1321 Posted August 11, 2023 Share Posted August 11, 2023 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 Lesum Posted August 11, 2023 Solution Share Posted August 11, 2023 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; } } The-Design-Order, tuanphan and Begona 3 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
Joanna1321 Posted August 11, 2023 Author Share Posted August 11, 2023 It worked! Thank you! Lesum 1 Link to comment
Joanna1321 Posted August 15, 2023 Author Share Posted August 15, 2023 (edited) Some of the logos in the simple list (on Squarespace 7.1) are larger and I think it's creating uneven space between rows. Can we fix it with code so all rows have same space between them? Edited August 15, 2023 by Joanna1321 Link to comment
Lesum Posted August 15, 2023 Share Posted August 15, 2023 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. Joanna1321 1 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
dani2 Posted September 21, 2023 Share Posted September 21, 2023 @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.) Link to comment
tuanphan Posted September 23, 2023 Share Posted September 23, 2023 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.) #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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment