I'm looking for a solution how to draw a responsive square, where will be height given in %.
<div class="square"></div>
//CSS
.square{
background: red;
height: 49%;
//and what else make this div square I found many solutions how to make it but it is dependent on width :(
}
viewport: <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
and wrapper of this square is another div with this css:
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;