Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

How to make in CSS an overlay over an image?

.bg-img{
  text-align: center;
  padding: 130px 0px;
  width: 100% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)), url(your-img-path);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #CSS #overlay
ADD COMMENT
Topic
Name
8+2 =