In my current project, I am utilizing react-bootstrap modal. My goal is to position the modal at the bottom of all screen resolutions. While I have successfully achieved this by adjusting the CSS bottom property to -74% for 1080x1920 resolutions, the same method does not work for other devices.
<div role="dialog" aria-modal="true" class="fade modal show" tabindex="-1" style="display: block; padding-left: 0px;">
<div role="document" class="modal-dialog sc-modal">
<div class="modal-content">...
</div>
</div>
</div>
.sc-modal{
width:100% !important;
top: unset;
bottom:0%;
max-width: 1080px;
left: 50%;
transform: translate(-50%, 0) !important;
}
Is there a way to consistently place the modal at the bottom across all device resolutions?