How to make the element, which is set to position: absolute , when the browser window is reduced in width to shift to the center, like all other elements?
.logo { width: 200px; height: 200px; border-radius: 100px; background-color: #244c5f; position: absolute; top: 0; right: 101px; left: 900px; text-align: center; font: 24px/8 Helvetica, Arial, sans-serif; color: azure; } <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>1</title> </head> <body> <div class="logo">hhhhhhhhhhhhhhh</div> </body> </html>