Bootstrap 4 can significantly reduce the number of elements needed to get the embedded file, simply referring to the group of forms as a row, and each input element as a column, as shown below ....
<form>
<div class="form-group row">
<label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
<div class="col-sm-10">
<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="email@example.com">
</div>
</div>
<div class="form-group row">
<label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
</div>
</form>
Read more about it here | https://getbootstrap.com/docs/4.0/components/forms/#readonly-plain-text
source
share