html - Blur borders on image via css -


i'm trying this:

example

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -