Answers for "how to move a div to center of screen css"

CSS
2

align div to center of screen

div.the-center-div {
	margin: 0 auto;
}
Posted by: Guest on September-28-2020
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 move a div to center of screen css"

Browse Popular Code Answers by Language