I am working on a website project and encountering an issue with a bootstrap toast. The toast currently appears in the top right corner, but I would like it to display above the carousel without affecting the layout. Instead, when the toast appears, it shifts all elements and creates a large gray area as shown in the image.
https://i.sstatic.net/PG2L6.png
My goal is to have the toast hover over the content similar to the example shown in the placement section of https://getbootstrap.com/docs/4.3/components/toasts/
Below is the code for my current toast:
<div aria-live="polite" aria-atomic="true" style="position: relative; min-height: 200px;">
<div class="toast" style="position: absolute; top: 0; right: 0;" data-autohide="false">
<div class="toast-header">
<strong class="mr-auto">Bootstrap</strong>
<small>11 mins ago</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
Hello, world! This is a toast message.
</div>
</div>
</div>
I believe there is a solution to this issue, and I hope someone can assist me in resolving it :)
Edit:
To visualize what I am aiming for, here is a photoshopped image:
https://i.sstatic.net/LXg1Q.png
And this is the current behavior:
https://i.sstatic.net/agjRn.png
Full code provided below:
<html lang="en">
... (rest of the code omitted for brevity)
</html>
This represents the most recent update on the issue.