Here is a code snippet to create a responsive grid layout using Bootstrap:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
<div class="container">
<div class="row">
<label class="col-2 col-form-label">Email</label>
<div class="col-8">
<input type="text" class="form-control">
</div>
<div class="col-2">
text
</div>
</div>
</div>
To see the issue with the grid breaking on smaller window sizes, check out this Bootply link.
If you resize the window to its smallest size, you'll notice that the last column shifts below the other columns instead of staying in the same row.
This problem occurs in both Bootstrap versions (4 & 3.7), where the last column (col-xs-2) doesn't maintain its position when the window size decreases.
Do you have any suggestions on how to fix this issue and ensure all three columns stay in the same row even at the smallest window size?