powmedia / backbone.bootstrap-modal

Bootstrap Modal wrapper for use with Backbone.
MIT License
183 stars 97 forks source link

Adjusting width of the modal dialog #68

Open spchuang opened 10 years ago

spchuang commented 10 years ago

I suggest adding an option that will append a class to the modal-dialog div. This allows us to set custom width or styling if necessary to override the default behavior.

Style87 commented 9 years ago

You can do this by passing in a custom template and within that template use other parameters to apply your classes. I use a template that has the following: div class="col-md-<%= col %> col-md-offset-<%= ((12-col)/2) %>" style="padding:0px; margin-top:30px;" Then when I create the modal I pass in the col parameter and I get bootstrap col's as my width.

EDIT: But a proper div with < and >. Not sure how to post code here.