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

You can try this Design -> Custom Css

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

 

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

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

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.