Answers for "keep div at the center on screen in html"

CSS
1

center a div on screen

.class{
position: realtive;
text-align: center;
top: 50%;
transform:translateY(-50%);
}
Posted by: Guest on January-16-2021

Code answers related to "keep div at the center on screen in html"

Browse Popular Code Answers by Language