Background image fill up / down in CSS

there is this background image that I have in the div element, and I want it to “fill” up / down and cover its entire height and width. Please explain to me how this is possible with CSS. Any help is greatly appreciated. Thanks in advance.

+4
source share
1 answer
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;

CSS Trick Documentation: http://css-tricks.com/perfect-full-page-background-image/

+3
source

Source: https://habr.com/ru/post/1545180/


All Articles