To post a comment, please sign in with your email.

How do I reduce the opacity of an element's background using CSS?


Is it possible, using CSS only, to make the background of an element semi-transparent but have the content (text & images) of the element opaque?

I'd like to accomplish this without having the text and the background as two separate elements.

Posted by Hari Karthikkeyyan
Mar 25
Comments (1)
Hari Karthikkeyyan avatar
Hari Karthikkeyyan
Mar 25, 2024
Testing Notification, Ignore if you have received this notification.