<div class="img"></div> .img{ background: url("../assets/image/img.png"); background-size: 100% 100%; height: 100%; position: fixed; width: 100%; }