Search
 
SCRIPT & CODE EXAMPLE
 

CSS

background image opacity css

body::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-image: url(image.jpg); /*Put your image url*/
    background-size: cover;
    background-position: center;
    opacity: 0.25; /*Value from 0.0 to 1.0*/
}
Comment

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%
}
Comment

Background image opacity CSS

div {
    opacity : 50%;
}

/* Use opacity to change the opacity of selected css */
Comment

PREVIOUS NEXT
Code Example
Css :: select third element of an id css 
Css :: css scrollbar position to bottom 
Css :: how hide in html 
Css :: how to center a position fixed element horizontally 
Css :: wkhtmltopdf remove thead repeating 
Css :: css custom bullet list 
Css :: star required css 
Css :: span cursor pointer 
Css :: how to make div scrollable horizontal 
Css :: setting multiple css using dom 
Css :: drop down menu html css 
Css :: css mutline comment 
Css :: internal style 
Css :: css comments 
Css :: style scrollbar table 
Css :: make previous commit master 
Css :: how to validate mail adress css 
Css :: css text to fit container 
Css :: css make text closer together 
Css :: align absolute div center 
Css :: The :invalid CSS pseudo-class 
Css :: arrow right css 
Css :: crop image with circle css 
Css :: css class 
Css :: html css bring to page top 
Css :: bounced in css animation 
Css :: flexbox 
Css :: how to style rule to apply the Border Box model css 
Css :: css border without changing size 
Css :: how to change the select arrow in css 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =