Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a scroll to bootbox dialog?

I have searched the web and I have failed to find a solution to adding a scroll to a bootbox custom dialog. Is there anyway I could get it to work. I need a vertical scroll.

Is this possible?

like image 531
Chad timothy Avatar asked Mar 13 '16 17:03

Chad timothy


1 Answers

Bootbox uses a css class named modal-body for the body of its dialog; so you can override the class to make it scroll-able. For instance:

.modal-body {
    height: 100px;
    overflow-y: scroll;
}
like image 115
Abbas Amiri Avatar answered Oct 26 '22 09:10

Abbas Amiri