Jump to content

How to extend image in img card block to match text length

Recommended Posts

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!1959533011_ScreenShot2022-01-14at3_43_42PM.thumb.png.283397805f58adf7ce6f5e5a5cdeaf96.png

Link to comment
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!1959533011_ScreenShot2022-01-14at3_43_42PM.thumb.png.283397805f58adf7ce6f5e5a5cdeaf96.png

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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!

Link to comment
  • 1 month later...
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
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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
  • 1 month later...
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

Screen Shot 2022-04-11 at 11.42.50 AM.png

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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
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;
}

maker.thumb.png.100af103892695352a1d8d5e300ee4da.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.