Jump to content

How to add a shadow box behind the title in poster image block

Recommended Posts

Hi there,

I'm currently building a site in the square-space trial so I don't think I can share my url. However, I basically looking to add a grey background block, with an opacity of around 80% to my title's on poster image blocks to make the text more legible. A bit like the inline version, expect I want it permanent, not only on hover and in the centre. I can't work out the code to do this, can anyone help?! Thanks in advance.

Link to comment
  • Replies 3
  • Views 512
  • Created
  • Last Reply

You can try this Design -> Custom Css

.sqs-block-image .design-layout-poster .image-card {
  background: rgb(128 128 128 / 0.8);
  padding: 1em;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
45 minutes ago, bangank36 said:

You can try this Design -> Custom Css


.sqs-block-image .design-layout-poster .image-card {
  background: rgb(128 128 128 / 0.8);
  padding: 1em;
}

 

Thank you! That looks great but I get this message I'm afraid I'm unsure what it means: Is there a hex code version? Thanks! 

error evaluating function `rgb`: color functions take numbers as parameters
Link to comment

Sorry try this

#808080cc

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

Archived

This topic is now archived and is closed to further replies.

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