In my observation, there is a noticeable variance in the behavior of in-line forms between the older version of Bootstrap, v3, and the newer version, V4.
I have included two code snippets below:
Bootstrap 3
In Bootstrap 3, when the page width decreases, each form element adjusts to occupy the entire width of the page. However, this functionality no longer exists in Bootstrap 4. Surprisingly, I couldn't find any mention of this full-width behavior in the Bootstrap 3 documentation. Even though it's not documented, the fields still expand to full width in an inline form when enclosed in a form-group
div.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<h1>bootstrap/3.3.6</h1>
{Form HTML content for Bootstrap 3}
Bootstrap 4
Now, using the same HTML structure in Bootstrap 4 doesn't produce the full-width behavior anymore. Just like in Bootstrap 3, there seems to be no reference to the full-width form fields on narrower pages or in inline forms within the Bootstrap 4 documentation.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<h1>bootstrap/4.0.0</h1>
{Form HTML content for Bootstrap 4}
I am curious if anyone knows of a way to replicate the Bootstrap 3 behavior in Bootstrap 4, where the form-fields expand to full width as on wider screens?
I prefer not to remove the class='form-inline'
from the form, as I want it to appear inline on larger screens.