I have a Bootstrap modal dialog for which I want to layout the various labels and inputs. I have tried using row/column classes but they do not appear to do anything. What are my options here?
Thanks,
Doug
I have a Bootstrap modal dialog for which I want to layout the various labels and inputs. I have tried using row/column classes but they do not appear to do anything. What are my options here?
Thanks,
Doug
You can make the Bootstrap modal responsive by resetting the container widths:
have a look bootstrap example no need to add
container
orcontainer-fluid
orcol-*
classes withmodal-body
or insidemodal-body
see here
From the docs
http://getbootstrap.com/javascript/#modals-grid-system
For Bootstrap 4 you can create a modal container with SCSS.
The
.modal-container
class should be added to the.modal-dialog
Variables:
Coding:
Some additional CSS is recommended.
Tom Rudge's answer inspired me. You don't need to make the container also be a full-width column itself which Matt Dell pointed out will fail linters.
Make the container container-fluid instead!
bootply showing col-md-12 and container-fluid side by side
I got it working ok...http://www.bootply.com/WAwE3QyUdb
Add a col to the container inside the modal-body.