CodePen

HTML

            
              <div class="outer">
  <div class="inner"></div>
</div>
            
          
!

CSS

            
              @import "compass/css3";

.outer{
  width:500px;
  height:100px;
  background:#999999;
  overflow:hidden;
  margin:0 auto;
  /*  
    You cannot set a position on this element.
  */
}

.inner{
  background:#cccccc;
  position:absolute;
  width:520px;
  height:50px;
  box-shadow:0 0px 5px 5px black;
  margin-top:25px;
  margin-left:-10px;
  overflow:hidden;
}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................