< div class="snippet">
Код: Выделить всё
* {
margin: 0;
padding: 0;
}
.header {
min-height: 100vh;
width: 100%;
background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7), url(images/dhmkbannan.png));
background-position: center;
background-size: cover;
position: relative;
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/733 ... ml-and-css