Jump to content

CSS for background color opacity

Recommended Posts

Hi all, I'm having trouble changing the opacity of a heading background color in the custom CSS field.

I'm using the code below and thought the .5 in the final line would make opacity 50%. But it isn't working for some reason I can't figure out. 

#block-yui_3_17_2_1_1595131393232_6522 {
 padding-top: 20px;
background-color: #292b47; /* fallback for old browsers */
background-color:rgba 41, 43, 71, .5;
}

The attached screenshot is how the block renders.

 

opacity.png

Link to comment
  • Replies 7
  • Created
  • Last Reply

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.