html css position center code example
Example 1: css align center
.center {
margin: auto;
width: 50%;
border: 3px solid green;
padding: 10px;
}
Example 2: align center css
margin: auto;
.center {
margin: auto;
width: 50%;
border: 3px solid green;
padding: 10px;
}
margin: auto;