I'm trying to make a square on all devices with CSS, but unfortunately it doesn't work because I'm using % instead of px. I have searched for this situation in many places on the internet, but all the results I have found use px or cm values. Could someone with knowledge help with this? Thank you.
css:
div{
position: absolute;
top: 0;
left: 0;
width: 5%;
height: auto;
border: 1px solid #000;
text-align: center;
}