Bootstrap FormsIn Bootstrap, there are three types of form layouts:
Bootstrap Form RulesThere are three standard rules for these 3 form layouts:
1) Bootstrap Vertical Form (Default)Test it Now2) Bootstrap Inline FormIn Bootstrap Inline forms, all elements are inline, left-aligned, and the labels are alongside. This example is only applied to forms within viewports that are at least 768px wide! Example: Test it Now3) Bootstrap Horizontal FormYou have to add some additional rules if you want to create a horizontal form. Additional rules for a horizontal form:
Example: Test it NowBootstrap 4 FormsIn Bootstrap4, form controls automatically receive some global styling with Bootstrap. All textual <input>, <textarea>, and <select> elements with class .form-control have a width of 100%. Stacked (full-width) form:Bootstrap 4 provides full width stacked forms. Example:Let's take an example to create a stacked form with two input fields, one checkbox, and a submit button. Test it NowNext TopicBootstrap Alert |