The top position of the frame1 remain the same even already set top: 50%. The containing block is body tag. Not understand why it is not working?
<html lang="en">
<body>
<div class="frame1">
<div class="frame">
<div class="center">
</div>
</div>
</div>
</body>
</html>
CSS file:
.frame1 {
position: relative;
top: 50%;
left: 50%;
width: 600px;
height: 600px;
background: orangered;
border: 2px solid blueviolet;
}