Make img full widht and height
https://stackoverflow.com/questions/24650218/image-in-full-screen-with-img-tag html,body{ margin:0; height:100%; } img{ display:block; width:100%; height:100%; object-fit: cover; }