Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Style the Image Block: Card (Photo in front of card)


jbryan

Question

  • Answers 15
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

15 answers to this question

Recommended Posts

  • 0
6 hours ago, tuanphan said:

You mean this block or?

image.thumb.png.17fa14a438aa3a85d9ade07a19c41f49.png

 

No, I was able to replicate that block (not the image behind it). I moved on to practice doing the other blocks and I could not figure out how to get the image in front of the text block and make the text block bigger and change the background of it.

 

I'm in a Squarespace web design course and some of my classmates can't figure it out either!

@tuanphan I tried again for another hour trying to figure it out! I think it's an html block brought to the back and then styled by css? 😓

Edited by jbryan
Link to comment
  • 0

Hi,

I'm looking for the codes to achieve the similar look too (example below). 

On my site, I use Image Block-Collage. I want to move the text blocks around the images and make the images bigger without shrinking the text blocks, just like in the example. I tried another method, which makes a text block overlap on top of the image block but it looks odd. Do you think it is possible to achieve the look like in the example? @tuanphan

The attached (yellow block) is what I currently have on my site.

gallopapartments.com

pass: hello

Thank you.

Best,

image.thumb.png.2ddfb32f6771961849dce0cb532d2c7b.png

image.thumb.png.b33662109b638f4071529eadff460bfc.png

 

Link to comment
  • 0
1 minute ago, emsquarespace said:

Hi @jbryan did you manage to figure this one out? I'm trying to do a similar effect but can only make it work with the colour box behind an image and not the text like the example shown? 

If you share link to page where you use image block. We can check easier

Link to comment
  • 0

Thanks @tuanphan there isn't too much to the site yet, I'm playing around with different styles at the moment. I used the code from this (below) thread but I can't figure out how to make it more like the example at the top with the image overlapping the coloured text box. 

#page-5d9e40adc1c17f087e491930 {
  background: ~"linear-gradient(#BBB, #BBB) no-repeat center/1px 100%"; /*https://stackoverflow.com/a/53551089/5338581*/
}

.design-layout-card .intrinsic {
  padding-top: 50px;
  padding-bottom: 50px;
}

.design-layout-card.image-position-right .intrinsic {
  padding-right: 6%;
  margin-left: -6%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 40%, #FFC0CB 40%);
}

.design-layout-card.image-position-left .intrinsic {
  padding-left: 6%;
  margin-right: -6%;
  background: linear-gradient(270deg, rgba(0,0,0,0) 40%, #FFBB22 40%);
}

.sqs-block-image .design-layout-card .image-card-wrapper {
  background-color: transparent;
}
Link to comment
  • 0
On 11/14/2020 at 2:48 PM, emsquarespace said:

Thanks @tuanphan there isn't too much to the site yet, I'm playing around with different styles at the moment. I used the code from this (below) thread but I can't figure out how to make it more like the example at the top with the image overlapping the coloured text box. 


#page-5d9e40adc1c17f087e491930 {
  background: ~"linear-gradient(#BBB, #BBB) no-repeat center/1px 100%"; /*https://stackoverflow.com/a/53551089/5338581*/
}

.design-layout-card .intrinsic {
  padding-top: 50px;
  padding-bottom: 50px;
}

.design-layout-card.image-position-right .intrinsic {
  padding-right: 6%;
  margin-left: -6%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 40%, #FFC0CB 40%);
}

.design-layout-card.image-position-left .intrinsic {
  padding-left: 6%;
  margin-right: -6%;
  background: linear-gradient(270deg, rgba(0,0,0,0) 40%, #FFBB22 40%);
}

.sqs-block-image .design-layout-card .image-card-wrapper {
  background-color: transparent;
}

Hi. Do you still need help on this?

Link to comment
  • 0
On 11/23/2020 at 2:12 AM, emsquarespace said:

Thank you, yes please. I would like to recreate the first example and also make sure it's stacked and works for mobile. Attached again for reference. Thanks!

Screenshot 2020-11-22 at 19.10.30.png

Sorry, had a sick. Have you solved it yet?

Link to comment
  • 0
On 12/20/2020 at 2:17 PM, Asiya said:

Hi, can you share the code? how did you solved this?

Thanks in advance

If you share site url, we can take a look.

Link to comment
  • 0
On 12/30/2020 at 9:36 PM, Asiya said:

here it is:

https://www.livewithplum.com/about

I need the image to be on front of card.

Add to Custom CSS

div#block-yui_3_17_2_1_1609178375474_4516 .intrinsic {
    overflow: visible;
    z-index: 999 !important;
}

 

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...