<div class="box"></div>
.box {
   background-image:url(http://tpverstak.ru/wp-content/uploads/2017/05/kitty.jpg);
   background-position:center center;
   background-size:cover;
   width:300px;
   height:300px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.