Gradient Overlay With Parallax Background Using Divi

by | Oct 24, 2019 | Web | 0 comments

Every now and then I’ll run across a useful code snippet that I think will be good to tuck away for use later. When I find such things, I’ll try to post them here on my blog. For the rest of the world to see. And for me to come back and reference. This is one of those snippets.

.gradient-overlay:before {
content:"";
position:absolute;
z-index:1;
background:inherit;
top:0;
bottom:0;
width:100%;
}
.gradient-overlay .et_pb_row {
z-index:2 !important;
}
.gradient-overlay {
background-color: transparent;
}
Set the class to “gradient-overlay” and you should be good to go.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!