C
C
Creovid2017-03-27 21:33:28
css
Creovid, 2017-03-27 21:33:28

How does min-width work?

Hello!
I have a landing page with many elements with position:absolute, with right, left, top in %. It is necessary that the site does not shrink too much, so I specified min-width: 1024px; for the body, but absolute elements still respect the browser borders, not the minimum width. The same goes for the div-wrapper. For example, the background of the second page also shrinks to fit the width of the browser:
.bg2{
position:absolute;
top:100%;
height:100%;
width:100%;
background: url(Group_.png) no-repeat;
background-size: 100% 100%
z-index:-15;
}
I looked in Google, everything works fine for everyone. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxfox, 2017-03-27
@maxfox

Use media queries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question