Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to have a background image with a color overlay

/* Working method */
.tinted-image {
  background: 
    /* top, transparent red, faked with gradient */ 
    linear-gradient(
      rgba(255, 0, 0, 0.45), 
      rgba(255, 0, 0, 0.45)
    ),
    /* bottom, image */
    url(image.jpg);
}
Comment

html background image with color overlay "hsl"

#header {
  background: url("img/image.jpg") 0 0 no-repeat fixed;
  height: 100%;
  overflow: hidden;
  background-color: hsl(206, 27%, 38%);
  background-blend-mode: multiply;
}
Comment

overlay color on image css

footer#site-footer{  
  position:relative;
}

footer#site-footer:before {     /* use before property (pseudo-element)  */
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}
Comment

PREVIOUS NEXT
Code Example
Css :: css table row border radius 
Css :: border: 1px solid black; 
Css :: make text unhighlightable 
Css :: glowing text css 
Css :: media queries css not working for mobile 
Css :: how to give opacity to background only 
Css :: how to filter css red 
Css :: striped tables css 
Css :: div background image 
Css :: ion input change font size 
Css :: how to create a semi circle in css 
Css :: smooth transition in and out css 
Css :: centralizar div no meio da tela 
Css :: box shadow top and bottom only 
Css :: bring element to front css 
Css :: antd css import 
Css :: css cut off text 
Css :: center div in tailwind css 
Css :: backwards text css 
Css :: css click event jquery 
Css :: como colocar o footer sempre no final da página 
Css :: image color css 
Css :: react app css add background image 
Css :: font montserrat 
Css :: css background image svg not showing 
Css :: To make the content of the select2 RTL or LTR 
Css :: how to remove border of a specific side of td in css 
Css :: gulp with pm2 
Css :: cs and cd in jfet 
Css :: line through in css 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =