Answer the question
In order to leave comments, you need to log in
How to increase the height of a container by the ratio of its length?
There is a div1 container, it is stretched across the width of the screen and it has a background, how to make it so that when the screen is enlarged, the HEIGHT indicator increases in proportion to WIDTH so that the picture on the background is not cut off?
@media screen and (min-width: 1440px) {
.div1 {
width: 100%;
height: 900px;
background-image: url(background/space_and_stars/space_and_stars_1440.JPG);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question