Guest Posted January 29, 2014 Share Posted January 29, 2014 How would I go about changing the background opacity of a content block? This is the current code I have in the CSS Editor: #block-4e5265faf96ce435b6ce { border-style: double white 10px; background-color: black; opacity: .3; padding-top: 20px } Link to comment
tbartels Posted January 29, 2014 Share Posted January 29, 2014 Use RGBA to set the color, it supports alpha transparency as the 4th parameter: block-4e5265faf96ce435b6ce { border-style: double; border-color: white; border-width: 10px; padding-top: 20px; background-color: #afafaf; /* fallback for old browsers */ background-color: rgba(0, 0, 0, .3); } Link to comment
tbartels Posted January 29, 2014 Share Posted January 29, 2014 Don't forget to mark answers as accepted so others can find them and more answers aren't offered etc. Link to comment
tobeym Posted September 3, 2014 Share Posted September 3, 2014 If you need to change opacity of color of background, just use RGBA color as described here: CSS3: semi-transparent background color using RGBA Link to comment
naimerkallis Posted December 18, 2014 Share Posted December 18, 2014 try this background on div background: rgba(255,255,255,.5); Full source : Transparent Div Naimer Link to comment
jeng Posted August 11, 2016 Share Posted August 11, 2016 Make sure to grab your own block ID for this. You can remove the border style and stuff too if you don't want that. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.