Jump to content

CSS code regarding text background displays only when I go to "Custom CSS"

Recommended Posts

I have an issue with the effects of one code displaying only when I go to Design --> Custom CSS. It has to do with this code specifically, which creates a translucent-white background for text in a specified block:

#block-848b3e4b0bc6ae27ccc5 {   <---- my block ID

background-color: #f0f0f088;

padding: 1px;

text-align: center;

}

 

Any ideas what went wrong?

Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

22 hours ago, Mania said:

change background to this

background-color: rgba(240,240,240,88);

 

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

This is nice, because the background color is stable now, but it's not transparent /translucent. It's just solid gray. Is there a way to keep the transparency/opacity effect which I had with the alpha: 88?

 

#block-848b3e4b0bc6ae27ccc5 {

background-color: #f0f0f088; <--- the 88 is the alpha (responsible for the translucency, color opacity)

padding: 1px;

text-align: center;

}

 

 

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.