.subsection-image { background: linear-gradient(45deg, rgb(35, 31, 32) 0%, rgba(88, 89, 91, 0) 100%); } .subsection-image::before { content: ""; display: block; width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; z-index: 1; background-image: -moz-linear-gradient(45deg, rgba(35, 31, 32, 0.75) 0%, rgba(88, 89, 91, 0.5) 100%); background-image: -webkit-linear-gradient(45deg, rgba(35, 31, 32, 0.75) 0%, rgba(88, 89, 91, 0.5) 100%); background-image: linear-gradient(45deg, rgb(35, 31, 32) 0%, rgba(88, 89, 91, 0) 100%); }