Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Apply Background-image and CSS3 Gradient on the Same Element</title> <style> .box{ height: 400px; background: linear-gradient(transparent, black), url("/examples/images/sky.jpg") no-repeat center, lightblue; background-size: cover; } </style> </head> <body> <div class="box"></div> </body> </html>