make an element centre css code example
Example 1: center a div in css
.container {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: how to put container in center of page
div.InSkinAlignCenter {
margin: 0 auto;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}
div.InSkinAlignCenter {
margin: 0 auto;
}