andrew32516 Posted October 15, 2021 Share Posted October 15, 2021 Site URL: https://marketingrecruitment.digital/services Hey all, I'm looking to create a responsive grid layout for a services section on my website. Right now it looks pretty good, however, I'd like to be able to adjust two things: 1) Keep the height of each image block in the row the same height regardless of the amount of text. 2) As screen size shrinks, instead of going from 3 columns to one, it should go from 3 to 2 to 1. Here's the existing code I have for the image blocks. section[data-section-id="6166c23546b0db43ac0138d0"] .sqs-block-image { background-color: white; border-radius:10px; box-sizing: border-box; margin: 5%; padding: 30px; } @tuanphan I've been seeing your name everywhere. If you have any suggestions I'd love to hear them. Link to comment
Beyondspace Posted October 15, 2021 Share Posted October 15, 2021 (edited) 2 hours ago, andrew32516 said: Site URL: https://marketingrecruitment.digital/services Hey all, I'm looking to create a responsive grid layout for a services section on my website. Right now it looks pretty good, however, I'd like to be able to adjust two things: 1) Keep the height of each image block in the row the same height regardless of the amount of text. 2) As screen size shrinks, instead of going from 3 columns to one, it should go from 3 to 2 to 1. Here's the existing code I have for the image blocks. section[data-section-id="6166c23546b0db43ac0138d0"] .sqs-block-image { background-color: white; border-radius:10px; box-sizing: border-box; margin: 5%; padding: 30px; } @tuanphan I've been seeing your name everywhere. If you have any suggestions I'd love to hear them. 1. My solution is setting the paragraph in each image block in one line only. Therefore, the height is equal for all item (if your headings are not too long) 2. I suggest using breakpoint to set width of each image block in grid. Here is my Custom Css section[data-section-id="6166c23546b0db43ac0138d0"] .image-block .image-subtitle p { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; } @media only screen and (min-width: 768px) and (max-width: 1024px) { section[data-section-id="6166c23546b0db43ac0138d0"] .content-wrapper .sqs-layout > .row:last-child > .col { width: 50%; } } Support me by pressing 👍 if this useful for you Edited October 15, 2021 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
Beyondspace Posted October 15, 2021 Share Posted October 15, 2021 Here is my result grid_equally.mp4 Still looking for better solution from other forum member BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
andrew32516 Posted October 15, 2021 Author Share Posted October 15, 2021 Thanks so much for the reply @bangank36 Solution #2 is perfect! As for #1, I'd like to display the full text rather than having ellipses. That said, I really appreciate you taking the time to help me out. 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