Answers for "how to get a div centered on the screen"

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 "how to get a div centered on the screen"

Browse Popular Code Answers by Language