I am looking to prevent a sticky div from taking up space on the website. It currently sticks to the desired position as expected.
https://i.sstatic.net/wG4SK.png
HTML
<div v-if="isToastActive" class="toast">
<span class="message">{{ messageRef }}</span>
</div>
CSS
.toast {
position: sticky;
left: 100%;
bottom: 0rem;
max-width: fit-content;
background-color: #22bb33;
color: white;
border-radius: 0.5rem;
padding: 0.25rem 0.5rem;
}
My query is:
How do I exclude the sticky toast from scrolling?