twitter/bootstrap — Issue #1740: Form element directly located after a modal should have no margins
Author: cnicodeme
Created: 2012-02-05 10:14:37+00:00
State: open

Hi!

Here's a use case :

http://jsfiddle.net/PmRfU/

If you look in the .modal-footer, you'll see a little white space, caused by the form margin attribute.

Now, I often put the form element directly after the .modal like in the example, to have the input fields in the body, and the submit button in the modal-footer.

A simple

.modal>form {margin:0}

do the trick ;)