Мой текущий код в
styles.css выглядит следующим образом:
Мой текущий код в
styles.css выглядит следующим образом:
сильный>
Код: Выделить всё
body {
background-image: url("Renders/Room2.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
min-height: 100vh;
width: auto;
}
:root {
--scale: 100; /* Define your desired scale value */
--button-scale: 100; /* Define your desired button scale value */
--button-scale2: 100; /* Define your desired button scale2 value */
--vh: 1vh;
--wh: 1vw;
}
.buttons1 {
margin-left: auto;
margin-right: auto;
/* min-height: 100%; */
/* width: 50%; */
position: fixed;
top: 15rem;
min-height: calc(var(--vh) * 40);
width: calc(var(--vw) * 30);
aspect-ratio: 16/9;
}
.buttons2 {
display: inline-grid;
grid-template-columns: 1fr 1fr;
margin-left: auto;
margin-right: auto;
/* min-height: 100%;
width: 50%; */
position: fixed;
top: 15rem;
left: 40rem;
min-height: calc(var(--vh) * 40);
width: calc(var(--vw) * 30);
aspect-ratio: 16/9;
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... my-webpage
Мобильная версия