css transparent background color
div {
opacity:25% ;
}body {
background-color: rgb(255,255,255);
}html,body {
background-color: red;
}div {
width: 200px;
height: 200px;
display: block;
position: relative;
}
div::after {
content: "";
background: url(image.jpg);
opacity: 0.5;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: -1;
}.opacity30 {
opacity: 0.3;
filter: alpha(opacity=30); /* For IE8 and earlier */
}
Also in CSS:
- image crop using css 1:1
- force to load https
- center with css
- how to change the height of an image in css
- css padding attribute order
- vertical align h1 inside div
- css hiddden
- css hide timeline
- changong text color css
- min and max width media query
- react exact path highlight
- css transparent background color
- sass vs scss
- equivalent zoom css
- css grid repeat
- table css
- css how to stop screen from left and right
- :root css
- css to scss
- margin css
- include css typo3
- how to slide text to the right in css
- select box arrow hide css in ie
- install requirements.txt in pip command