Answers for "how to centre elements in a div"

CSS
3

how to center a div

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

how to center a div

It's normal to not know how to center a div, just copy and learn from the codes below
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language