I am trying to make a modal with a body that will scroll when the content becomes too large. However, I want the modal to be responsive to the screen size. When I set the max-he
This worked for me
.modal-dialog, .modal-content { /* 80% of window height */ height: 80%; } .modal-body { /* 100% = dialog height, 120px = header + footer */ max-height: calc(100% - 120px); overflow-y: scroll; }
Fiddle: http://jsfiddle.net/mehmetatas/18dpgqpb/2/