keep div at the center on screen in html code example
Example: center a div on screen
.class{
position: realtive;
text-align: center;
top: 50%;
transform:translateY(-50%);
}
.class{
position: realtive;
text-align: center;
top: 50%;
transform:translateY(-50%);
}