CodePen

HTML

            
              <div class="wrap">
  <div class="inside"></div>
</div>
            
          
!

CSS

            
              @import "compass/css3";

.wrap {
  width: 500px;
  height: 500px;
  background: #ccc;
  position: relative;
}

.inside {
  width: calc(100% - 30px);
  height: 30px;
  background: blue;
}
            
          
!

JS

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