Answers for "how to put a div in the center of all divs"

CSS
3

how to center a div

.MyDiv{
  	display: block;
  	margin-left: auto;
	margin-right: auto;
}
Posted by: Guest on August-31-2021
3

how to center a div

margin:auto
Posted by: Guest on August-13-2020

Code answers related to "how to put a div in the center of all divs"

Browse Popular Code Answers by Language