I'm trying to show a bootstrap
alert message as an overlay toast (so it auto hides, and is shown above other elements).
Problem: I have a spacing at the bottom of the toast, and cannot get rid of it: https://jsfiddle.net/dertqczw/
<div data-delay="30000" id="myToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true" style="position:absolute; top:50px; left:50px;">
<div class="toast-body">
<div class="alert fade show alert-primary" role="alert">Success</div>
</div>
</div>
//show toast with:
$("#myToast").toast('show');
/* get rid of toast styles */
.toast-body {
padding: 0;
font-size: 1rem;
}
.toast {
border: none;
background-color: inherit;
}