In this setup
<div class="a">
</div>
.a {
width: 400px;
height: 600px;
}
if the screen resolution is 1600*1200, will the div's width be 25% of the screen in the browser ?
if the screen resolution is 4000*2400, will the div's width be 10% of the screen in the browser ?
I want to be always 25%.
If I use percent to set the width, div
will shrink automatically when browser is not in full screen.