button text center css code example
Example 1: center text in css
.class {
text-align: center;
}
Example 2: how to right align a text button
.flex-box {
display:flex;
justify-content:space-between; //button with flex box
outline: 2px dashed blue;
}
.flex-box-2 {
display:flex;
justify-content: flex-end;
outline: 2px deeppink dashed;
}