Home > OS >  CSS text-align is not making the text center or right aligned
CSS text-align is not making the text center or right aligned

Time:11-22

In the following See this working ssTo get the button text of the accordian elements to be right aligned, do this:

.maxbutton-1.maxbutton.maxbutton-account-page .mb-text{
    text-align: right;
}

To get the title of the accordian to align right, use this:

.ekit-wid-con .elementskit-accordion .elementskit-card-header>.elementskit-btn-link{
     justify-content: right;
}

CodePudding user response:

To align text to right side use this code on anchor element .elementskit-btn-link:

display: flex;
justify-content: flex-end;

If you wish to center it then this:

display: flex;
justify-content: center;
  • Related