Answers for "how to make a div into center"

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
0

how to make a div into center

.center {
margin: auto;
width: 60%;
border: 5px solid #FFFF00;
padding: 10px;
}
Posted by: Guest on October-24-2021

Code answers related to "how to make a div into center"

Browse Popular Code Answers by Language