I'm trying to use the modals within Twitter Bootstrap to implement a contact form.
Ideally I would like the first two fieldsets to align next to each other and the third fieldset (containing a textarea and a submit button) to occupy the full width of the modal.
I have tried to use rows and spans to make them play nicely but am not sure on the way to go about this. It seems like there isn't a total of span12 to start with.
Has anyone else achieved anything similar?
Here is a solution only using Twitter Bootstrap 3 classes - namely
row
,col-sm-6
andclearfix
:HTML
Added borders to the columns for viewability below. Note that there is also default Bootstrap padding around the
<p>
tag, not bordered below.Rendered preview
If you want to look at how to structure the title or footer of the modal (before/after the ellipses in the above example), you can look at the layout of Bootstrap modals here.
Yes, just put it inside the modal body using "row-fluid" class, which will adjust to available space (unless you changed these styles):
You can do something like this
hope this helps,