CodePen

HTML

            
              <div class="holder">
  <img src="http://lorempixel.com/output/nightlife-q-c-200-200-7.jpg" alt="">
</div>
            
          
!

CSS

            
              * {
  box-sixing: border-box;
}

.holder {
  width:200px;
  margin:10px auto;
  position:relative;
  border:1px solid black;
}

.holder img {
  opacity:0.50;
  display:block;

}

.holder:before {
  content:"";
  position:absolute;
  background-image:url(http://lorempixel.com/output/nightlife-q-c-200-200-7.jpg);
  width:50%;
  height:50%;
  top:25%;
  left:25%;
  border:1px solid black;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................