Recently, I've been immersed in an HTML project and took on the task of creating a login page. When I delved into the stylesheet, I inputted the following code:
.login-box {
width: 280px;
position: absolute;
top: 50%
left: 50%;
color: white;
transform: translate(-50%,-50%);
}
Normally, this should center anything perfectly on the screen. However, it ended up placing the login box at the top left corner of the screen - slightly askew. If anyone is able to provide some guidance or advice on how to rectify this issue, I would greatly appreciate it. Thank you in advance!