css set text in center of div code example
Example 1: center text in css
.class {
text-align: center;
}
Example 2: how to make a division center css
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
Example 3: align centre
.headerTwoDiv{
margin:1% auto;
margin-right: auto; margin-left: auto; width: 21%;
padding-top: 11px;
}