Struggling to design a sleek fixed bootstrap 4 alert?
The issue I'm facing is that the alert displays unwanted bottom padding when it's not placed inside a container. However, since it needs to be fixed and auto-centered, placing it within a container isn't an option.
Here's the CSS code I'm using:
#alert {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
Check out my JSFiddle example for reference: https://jsfiddle.net/81vhy56o/
Any ideas on how to resolve this?