pamjeanne Posted January 14, 2022 Share Posted January 14, 2022 Site URL: https://www.pamjeannephoto.com/socal-wedding-packages Under my packages section, I have a couple of image cards that I would like to extend the height of the image side to match the height of the text side, without distorting the image. I attached a screenshot to better describe what I'm trying to achieve. Anyone know if this is possible and how? I had used a custom css before that accomplished what I'm trying to do, but I think a new Squarespace update made that css non-functional. Thanks in advance! Link to comment
Beyondspace Posted January 17, 2022 Share Posted January 17, 2022 On 1/15/2022 at 6:50 AM, pamjeanne said: Site URL: https://www.pamjeannephoto.com/socal-wedding-packages Under my packages section, I have a couple of image cards that I would like to extend the height of the image side to match the height of the text side, without distorting the image. I attached a screenshot to better describe what I'm trying to achieve. Anyone know if this is possible and how? I had used a custom css before that accomplished what I'm trying to do, but I think a new Squarespace update made that css non-functional. Thanks in advance! Try adding to Home > Design > Custom Css #block-c9272277a70b6c0bfda7 { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } #block-cf2a865f7d587963ac7f { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } Let me know how it works on your site tuanphan 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
pamjeanne Posted January 18, 2022 Author Share Posted January 18, 2022 4 hours ago, bangank36 said: Try adding to Home > Design > Custom Css #block-c9272277a70b6c0bfda7 { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } #block-cf2a865f7d587963ac7f { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } Let me know how it works on your site Oh wow!! This worked, thank you so much! Beyondspace 1 Link to comment
pamjeanne Posted February 24, 2022 Author Share Posted February 24, 2022 On 1/16/2022 at 4:03 PM, bangank36 said: Try adding to Home > Design > Custom Css #block-c9272277a70b6c0bfda7 { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } #block-cf2a865f7d587963ac7f { .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } } Let me know how it works on your site Hi Bangank36, I have a follow-up question to this. Is there a way to universally apply this to all img card blocks throughout the site? I have multiple pages with img card blocks such as this, some pages have 2 img cards, some have 3, some have 4. I'd love to be able to apply this with just one code, as opposed to targeting individual card blocks on individual pages. Thank you again!!! Link to comment
tuanphan Posted February 27, 2022 Share Posted February 27, 2022 On 2/25/2022 at 3:51 AM, pamjeanne said: Hi Bangank36, I have a follow-up question to this. Is there a way to universally apply this to all img card blocks throughout the site? I have multiple pages with img card blocks such as this, some pages have 2 img cards, some have 3, some have 4. I'd love to be able to apply this with just one code, as opposed to targeting individual card blocks on individual pages. Thank you again!!! try this new code .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } 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
pamjeanne Posted March 3, 2022 Author Share Posted March 3, 2022 On 2/26/2022 at 11:36 PM, tuanphan said: try this new code .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } .sqs-block-image-figure { .image-inset { height: 100% !important; } .sqs-image-shape-container-element { height: 100% !important; } } Thank you!! This worked! 😄 Link to comment
ratkaj Posted April 11, 2022 Share Posted April 11, 2022 @tuanphan -- I'm actually having an issue with a card no resizing, I tried your code but it's not working in my situation. Could you help? https://drippypots.squarespace.com Password: 1234 Link to comment
tuanphan Posted April 18, 2022 Share Posted April 18, 2022 On 4/11/2022 at 11:43 PM, ratkaj said: @tuanphan -- I'm actually having an issue with a card no resizing, I tried your code but it's not working in my situation. Could you help? https://drippypots.squarespace.com Password: 1234 Hi, It looks fine to me. Did you solve? Or you have problem on some specific screen sizes? 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
ratkaj Posted April 18, 2022 Share Posted April 18, 2022 12 hours ago, tuanphan said: Hi, It looks fine to me. Did you solve? Or you have problem on some specific screen sizes? Sorry, no. I had to make the copywriter cut copy down until it fit for the client review. I would still LOVE to figure this out if you can help?? Link to comment
tuanphan Posted April 22, 2022 Share Posted April 22, 2022 On 4/19/2022 at 2:47 AM, ratkaj said: Sorry, no. I had to make the copywriter cut copy down until it fit for the client review. I would still LOVE to figure this out if you can help?? Add to Design > Custom CSS /* Meet the maker image */ div#block-bc75da7a45f846b7200a img { top: 0 !important; height: 100% !important; } 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