Answers for "add background color on top of background image"

0

add background color on top of background image

/* 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);
}Create a snippet
Posted by: Guest on April-23-2021

Code answers related to "add background color on top of background image"

Browse Popular Code Answers by Language