I'm in a course where I should complete a challenge only using padding and margin
the current challenge is to center a div element with a border that is inside the body with the width: 200px
and padding: 50px
inside to make it easier to see and look (padding is not necessary)
I used this code to center it horizontally but for vertically I have no idea
div {
width: 200px;
border: 4px solid black;
padding: 50px;
margin: auto;
}
<body>
<div></div>
</body>
Help me center it vertically as well but no flex box
and position & transform