html - Blur borders on image via css -
i'm trying this:
i think done using background image , image (mask) above transparent center. possible same pure css?
whilst can't apply box-shadow
directly image apply :before or :after
html
<div class="shadow"> <img src="http://lorempixel.com/400/200/" /> </div>
css
.shadow { display:block; position:relative; } img { width: 100%; height: 100%; } .shadow:before { display:block; content:''; position:absolute; width:100%; height:100%; -moz-box-shadow:inset 0px 0px 3px 1px rgba(0,0,0,1); -webkit-box-shadow:inset 0px 0px 3px 1px rgba(0,0,0,1); box-shadow:inset 0px 0px 3px 1px rgba(0,0,0,1); }
Comments
Post a Comment