mhp Posted October 31 Share Posted October 31 Hi, Having a hard time mastering the grid system on mobile devices. I have page section that has three columns (blocks). Looks fine on the desktop view. But on Mobile devices there are large spaces at the bottom of each block. In the designer itself, it looks fine, but when saved and published, the large spaces appear. Appreciate any tips and CSS to overcome. Thanks Link to comment
melody495 Posted October 31 Share Posted October 31 Hi, please share a link to your website. Are they 3 separate text blocks or in 1 text block? -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody 💁♀️ SquareSpace Developer You dream it, I'll make it happen. Contact me: 💻 https://www.melodylee.tech ✉️ my email 📍 UK based. The great thing about the internet, we can work together from anywhere. #neverstoplearning ☕ I like coffee 😊 Link to comment
mhp Posted October 31 Author Share Posted October 31 Yes, 3 separate text blocks. https://www.artraynyc.com/hair-salon-1 Thanks. Link to comment
SaranyaDesigns Posted October 31 Share Posted October 31 Try changing to flex instead of grid for mobile? @media (max-width:767px) { .fe-653f0146fdf76728df80846c { display: flex; flex-wrap: wrap; gap: 25px; padding: 25px; } } Link to comment
mhp Posted October 31 Author Share Posted October 31 Thanks for the response. The code provided actually increased the space by 25px. Setting to 0 leaves the original large gap. Other suggestions? Link to comment
SaranyaDesigns Posted October 31 Share Posted October 31 (edited) @mhp try adding !important to the display: flex property, it looks like it's not overriding the grid. Once the flex property is working, you will want the padding: @media (max-width:767px) { .fe-653f0146fdf76728df80846c { display: flex !important; flex-wrap: wrap; gap: 25px; padding: 25px; } } let me know? Edited November 1 by SaranyaDesigns 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