Hello, I'm looking to enhance the appearance of my website using the rule of thirds.
I have a tall div that I would like to position one-third of the way down from the top of the browser window viewport height.
This is what I have tried so far, but it doesn't seem to be working:
div {
display: block;
margin-top: 33vh;
margin-left: auto;
margin-right: auto;
width: 50rem;
transform: translate(0, -50%);
position: relative;
}
I believe the issue lies with the transform property not functioning correctly.
Appreciate any assistance you can provide!