To create a Bootstrap 5 toast, I use the following code:
<div id="liveToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="me-auto">Help</strong>
<button type="button" class="end-0 close" data-dismiss="toast">
<span>×</span>
</button>
</div>
...
</div>
While using the end-0
class, which was intended to align the Close button character ×
to the right border of the toast, it appears that this class does not function as expected. However, other placement classes such as m-2
do work correctly.
Is there a specific Bootstrap placement class available for achieving this alignment, or should manual CSS adjustments be made?