Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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);
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #background #image #color #overlay
ADD COMMENT
Topic
Name
3+9 =