align text in alert of bootstrap
To align text in an alert of Bootstrap, you can use the Bootstrap utility classes. Here's an example:
<div class="alert alert-primary text-center" role="alert">
This is a centered alert.
</div>
In the example above, the text-center
class is used to center-align the text within the alert. You can replace alert-primary
with other Bootstrap alert classes to change the color and style of the alert.
That's it! The text in the alert will now be aligned in the center.