center div on screen horiontally 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%);
}