Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

tint image with background color css

.tinted-image {
  background-image: 
    /* top, transparent red */
    linear-gradient(
      rgba(255, 0, 0, 0.45), 
      rgba(255, 0, 0, 0.45)
    ),
    /* your image */
    url(image.jpg);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tint #image #background #color #css
ADD COMMENT
Topic
Name
8+7 =