HTML CSS examples for CSS Widget:Image Shadow
My box-shadow above an image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .header {<!-- w w w . j a v a 2 s . c om--> background:linear-gradient(Chartreuse, yellow); width:100%; margin-top:0; height:76px; border-top:6px solid blue; box-shadow:2px 2px 6px pink; z-index:2; position:relative; } .logoName { color:OrangeRed; font-family:Lobster, sans-serif; font-size:31px; margin:21px 21px; float:left; } .header ul { list-style-type:none; margin-top:21px; margin-right:251px; float:right; } .header ul li { display:inline-block; font-family:Montserrat, sans-serif; color:grey; font-size:21px; padding:11px 11px; } .header ul li a { font-family:Montserrat, sans-serif; color:BlueViolet; font-size:21px; } .header ul li a:hover, .header ul li a:active { border-bottom:Chartreuse solid; color:yellow; } .header ul li a:link { text-decoration:none; } .container { background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png'); background-size:cover; background-color:blue; height:1001px; width:100%; z-index:3; } </style> </head> <body> <div class="header"> <h1 class="logoName">Lorem ipsum </h1> <ul> <li> <a href="#">Lore</a> </li> <li> <a href="/showcase">Lorem ip</a> </li> <li> <a href="/message">Lorem ipsu</a> </li> </ul> </div> <div class="container"> </div> </body> </html>