squarespacer01 Posted November 25, 2022 Share Posted November 25, 2022 (edited) I would like to change the size of the grid image in my portfolio projects but I can't figure out how to do it. I can change the width by using the CSS code below but not the height of the project .grid-image { width: 100% !important; } Edited November 25, 2022 by squarespacer01 Link to comment
Beyondspace Posted November 25, 2022 Share Posted November 25, 2022 2 hours ago, squarespacer01 said: I would like to change the size of the grid image in my portfolio projects but I can't figure out how to do it. I can change the width by using the CSS code below but not the height of the project .grid-image { width: 100% !important; } Can you share your site with the protected password so I can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
squarespacer01 Posted November 28, 2022 Author Share Posted November 28, 2022 On 11/25/2022 at 1:10 AM, Beyondspace said: Can you share your site with the protected password so I can take a look? Hi Beyondspace, I hope it's ok for me to just share the url below. https://www.pecamora.com/landscape I want to be able to reduce the aspect ratio of each project to a custom size so I can fit more projects on the screen at the same time. I tried using the code below but all it does is change the size of the image and not the entire project block .grid-image { padding-bottom: 50% !important; } Link to comment
Beyondspace Posted November 30, 2022 Share Posted November 30, 2022 On 11/29/2022 at 5:08 AM, squarespacer01 said: Hi Beyondspace, I hope it's ok for me to just share the url below. https://www.pecamora.com/landscape I want to be able to reduce the aspect ratio of each project to a custom size so I can fit more projects on the screen at the same time. I tried using the code below but all it does is change the size of the image and not the entire project block .grid-image { padding-bottom: 50% !important; } There is a space below the project items which is the padding bottom of portfolio section. You can try the following Css code to remove this padding section[data-section-id="62d4dbaac00c0965ccd6c825"] #gridThumbs { padding-bottom: 0; } Support me by pressing 👍 or marking as solution if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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 November 30, 2022 Share Posted November 30, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
squarespacer01 Posted November 30, 2022 Author Share Posted November 30, 2022 1 hour ago, Beyondspace said: There is a space below the project items which is the padding bottom of portfolio section. You can try the following Css code to remove this padding section[data-section-id="62d4dbaac00c0965ccd6c825"] #gridThumbs { padding-bottom: 0; } Support me by pressing 👍 or marking as solution if this useful for you Thank you Beyondspace, that is very useful. But is there a way to apply this code to all my portfolio pages instead of using the specific section code? Also did you find a way to make the height of each project smaller so I can fit more projects on the screen at once? Thank you again for your help! Link to comment
Beyondspace Posted November 30, 2022 Share Posted November 30, 2022 You can try @media screen and (min-width: 992px) { div#gridThumbs { padding-bottom: 0; } } to remove the bottom padding BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Solution Beyondspace Posted November 30, 2022 Solution Share Posted November 30, 2022 Try the following one to change height of each item .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-item { padding-bottom: 100%; } Change the value % until it meets your need JeromeD 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
squarespacer01 Posted November 30, 2022 Author Share Posted November 30, 2022 15 hours ago, Beyondspace said: Try the following one to change height of each item .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-item { padding-bottom: 100%; } Change the value % until it meets your need Thank you so much for your help, this is exactly what I was looking for! And also thank you for helping me with the bottom padding, I really appreciate that. Link to comment
JeromeD Posted October 28, 2023 Share Posted October 28, 2023 On 11/30/2022 at 7:46 AM, Beyondspace said: .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-item { padding-bottom: 100%; } Thank you very much for the code. It worked for me too. Unfortunately it also changed for the mobile version (which is normal). How is it possible to change now exclusively the mobile version? I'd like the mobile version to look like the picture IMG_6731 Link to comment
tuanphan Posted November 3, 2023 Share Posted November 3, 2023 On 10/29/2023 at 5:15 AM, JeromeD said: Thank you very much for the code. It worked for me too. Unfortunately it also changed for the mobile version (which is normal). How is it possible to change now exclusively the mobile version? I'd like the mobile version to look like the picture IMG_6731 You can change code to this to make it run on desktop only @media screen and (min-width:992px) { .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-image, .tweak-portfolio-grid-overlay-image-aspect-ratio-ultra-widescreen .portfolio-grid-overlay .grid-item { padding-bottom: 100%; } } 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