I am trying to make a square with height 100% of the screen only in css. I know that I can do this with JS by calculating the height and applying this to width and height, but I am looking for only css solution.
I have found the following answer but it looks like it makes width 100%. When I tried to make height 100% with
.square{
height: 100%;
padding-right: 100%;
background: red;
}
nothing shows up (take a look at this fiddle). Any idea what is wrong?