'Text and FontAwesome alignment in a Bootstrap 5 button
I am trying to figure out how to do something with a Bootstrap 5 button. I would like to be able to have the text label of the button left-justified and the FontAwesome icon right-justified. If I use a fixed-width button, how do I make sure it scales according to screen size along with all of the other content? Here's my button now, but the icon is on the wrong side, and nothing is justified:
<button type="button" class="btn btn-labeled btn-success">
<span class="btn-label"><i class="fa fa-angle-right"></i></span>
Learn More
</button>
Thank you in advance for your help, everyone!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
