I am using Bootstrap 5 and modal is kinda tricky. Do you happen to know why the dialog is under the backdrop? I've compared the modal example on Bootstrap website and on my code. I haven't changed any positions, just added header color and adjusted padding.

One solution would be using data-bs-backdrop="false" but I wanted to have a backdrop. Thanks!!

enter image description here

  • This is more of a CSS question. Check the console, play around with z-index, check if your own styles somehow targeted the bootstrap classes. Aug 26, 2021 at 10:58
  • @Buttered_Toast, I'll check. So far I haven't found the culprit.
    – ddd
    Sep 2, 2021 at 10:04


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.