css keep div centered on screen 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%);
}