Last active
December 8, 2022 19:29
-
-
Save douglasmiranda/cdccaafdead9ff542c2f697a2421de8d to your computer and use it in GitHub Desktop.
Bootstrap Toasts - Top Right Fixed (+ Fix toast-container overlaping content)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://getbootstrap.com/docs/5.0/components/toasts/ */ | |
.toast-container { | |
position: fixed; | |
right: 20px; | |
top: 20px; | |
} | |
.toast:not(.showing):not(.show) { | |
display: none !important; | |
} | |
/* | |
<div class="toast-container"> | |
<div class="toast d-flex align-items-center" role="alert" aria-live="assertive" aria-atomic="true"> | |
<div class="toast-body text-success"> | |
Success! | |
</div> | |
<button type="button" class="btn-close ms-auto me-2" data-bs-dismiss="toast" aria-label="Close"></button> | |
</div> | |
</div> | |
*/ |
very useful gist !
Thanks Bro
Thanks
Thanks
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many thanks for this snippet! It is extremely useful!