Section: Html

How to add a gradient overlay to a background image using just CSS and HTML

June 16, 2021 ยท 2 min read
Adding a background image to a <div> (or any other tag) is easy using CSS. Use these example rules to get a nice gradient that goes over the top of a background image, without adding any additional divs. All in CSS.