Jump to content

How do I add a drop shadow for only specific images not including its caption?

Recommended Posts

Hiya!

I'm looking to add a drop shadow on certain images contained in an image block.  If I target the block, the whole block gets the drop shadow (both picture and caption).

Is there any way to target only the picture but not the whole block?

Any ideas will be welcome! Thank you so much!!!

Link to comment
On 8/6/2021 at 7:45 PM, Aidus said:

Hiya!

I'm looking to add a drop shadow on certain images contained in an image block.  If I target the block, the whole block gets the drop shadow (both picture and caption).

Is there any way to target only the picture but not the whole block?

Any ideas will be welcome! Thank you so much!!!

Hi. Can you share link to page where you added image block? We can check easier

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
On 8/10/2021 at 2:02 AM, Aidus said:

Hi. Here you have: https://www.aidagonzalez.design/mirror for example the picture that has 'The Design Thinking Process' as caption.

Try this CSS

div#block-yui_3_17_2_1_1619554321026_33550 .image-block-wrapper {
    box-shadow: -2px 6px 7px #f2f2f2;
}

 

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

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.