HTML CSS examples for CSS Property:background
Create an element with transparent background
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .background { background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,#959595), color-stop(46%,#0d0d0d), color-stop(50%,#010101), color-stop(53%,#0a0a0a), color-stop(76%,#4e4e4e), color-stop(87%,#383838), color-stop(100%,#1b1b1b)); width: 250px; height: 250px; float:left; } .masked {<!-- www . j av a2 s . c om--> width: 200px; margin: 25px; height: 200px; background-color: #37b; -noobed-mask-image: url(https://www.java2s.com/style/demo/InternetExplorer.png); } </style> </head> <body> <div class="background"> <div class="masked"> </div> </div> </body> </html>