Answers for "dom center div on 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

Browse Popular Code Answers by Language