Apply soft edges to image using CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Apply soft edges to image using CSS

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">
#image-container {<!--   w w  w  . j a v a2 s.  c om-->
   background:url('http://www.java2s.com/style/demo/Google-Chrome.png') left top no-repeat;
   box-shadow:26px 26px 51px 0 white inset, -26px -26px 51px 0 white inset;
   width:301px;
   height:301px;
}
</style> 
 </head> 
 <body> 
  <div id="image-container"> 
   <div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials