Answers for "css background image and transparency"

CSS
1

css transparent background image

background: linear-gradient(rgba(0,0,0,0.5), rgba(0, 0, 0, 0.5)), url(image.jpg)
Posted by: Guest on September-04-2021
1

background image opacity css

/* Two ways to make images opaque */

div {
	background-color : rgba(120, 120, 120, 0.5) 
   	/* the 0.5 is the value of opacity on a scale of 0-1 */
}

/* OR */

div {
	background-color : blue
    opacity : 50%
}
Posted by: Guest on November-25-2020

Code answers related to "css background image and transparency"

Browse Popular Code Answers by Language