I’ve searched online and find transform-translate properties which i’ve tried but don’t work. Is there not a single line that would do the trick? And why isnt margin: auto enough? I thought this would automatically set the square in the vertical centre?
Add another self-closing meta element within the head . Give it a name attribute set to viewport and a content attribute set to width=device-width, initial-scale=1.0 so your page looks the same on all devices.
As you have done this:
<meta charset="UTF-8">
add another meta element, so that you will have two meta elements on you page.