make div shadow come over its children - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

make div shadow come over its children

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
div {<!--from  w w w .j av a 2s. c  o m-->
   white-space:nowrap;
   box-shadow:inset 0 0 11px Chartreuse;
   padding:11px 11px;
}

img {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div> 
   <img src="https://www.java2s.com/style/demo/Safari.png"> 
  </div>  
 </body>
</html>

Related Tutorials