HTML CSS examples for CSS Widget:Image Shadow
CSS box-shadow on image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .img-container {<!--from w w w.j a va 2s.c o m--> width:91px; height:91px; position:relative; } .img-container:after { content:''; top:0; left:0; right:0; bottom:0; position:absolute; -webkit-box-shadow:inset 0px 0px 11px 8px Chartreuse; -moz-box-shadow:inset 0px 0px 11px 8px yellow; -ms-box-shadow:inset 0px 0px 11px 8px blue; -o-box-shadow:inset 0px 0px 11px 8px pink; box-shadow:inset 0px 0px 11px 8px OrangeRed; } </style> </head> <body> <div class="img-container"> <img src="https://www.java2s.com/style/demo/Opera.png"> </div> </body> </html>