I recently created a Student Add form using bootstrap 5
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Add Student</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="{% url 'student-add' %}" method="post" enctype="multipart/form-data">
<div class="modal-body">
{% csrf_token %} {{ form | crispy }}
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">
<i class="fa fa-save"></i> Save changes
</button>
</div>
</form>
</div>
</div>
</div>
Despite trying to make the form scrollable by adjusting the modal-dialog div, it remains fixed in the center of the page without scrolling capability.