Html css

How To Change Opacity Of Background Color But Not Content Using CSS

Posted by Weston Ganger on January 03, 2016

When you need to change only the color of the background of an element you can use CSS’ rgba.


.my-element{
  /*  black with opacity of 0.6 */ 
  background-color: rgba(0, 0, 0, 0.6);
}


Related External Links:


Posted in HTML / CSS and Tagged with css 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts