-
Гость
Фоновое изображение CSS переполнено
Сообщение
Гость »
У меня есть фон, который я пытаюсь покрыть градиентом, но градиент недостаточно длинный или что-то в этом роде
Код: Выделить всё
body {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
height: 100vh;
margin: 0;
padding: 0;
background: linear-gradient(rgba(18, 16, 32, 0.8), rgba(20, 28, 58, 1))
no-repeat,
url("imgs/Untitled-1.png") no-repeat;
background-color: rgb(20, 28, 58);
background-size: cover;
background-position: center center;
overflow-x: hidden; /* Prevent horizontal scrll */
}
Background image overflowing
I tried changing background-position but nothing helps
Источник:
https://stackoverflow.com/questions/781 ... verflowing
1710237045
Гость
У меня есть фон, который я пытаюсь покрыть градиентом, но градиент недостаточно длинный или что-то в этом роде
[code]body {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
height: 100vh;
margin: 0;
padding: 0;
background: linear-gradient(rgba(18, 16, 32, 0.8), rgba(20, 28, 58, 1))
no-repeat,
url("imgs/Untitled-1.png") no-repeat;
background-color: rgb(20, 28, 58);
background-size: cover;
background-position: center center;
overflow-x: hidden; /* Prevent horizontal scrll */
}
[/code]
Background image overflowing
I tried changing background-position but nothing helps
Источник: [url]https://stackoverflow.com/questions/78146089/css-background-image-is-overflowing[/url]