Looking to include notes on the right side of each input field? Check out this example I put together using a bootstrap layout.
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<div>
<section class="content container-fluid">
<form id="submitForm">
<fieldset>
<br>
<div class="form-group row">
<label for="userId" class="col-sm-1 col-form-label">User</label>
<div class="col-sm-6">
<select class="form-control" id="userId">
<option value="1">Alex</option>
<option value="39">Kent</option>
<option value="6">Nick</option>
</select>
</div>
<div class="col-sm-5, small" style="padding-left: 18px">
If your name is not available, please contact the Officer.
</div>
</div>
<div class="form-group row">
<label for="purposeNames" class="col-md-1 col-form-label">Purpose</label>
<div class="col-sm-6">
<input type="text" id="purposeNames" class="form-control" placeholder="Purpose" />
</div>
<div class="col-sm-5" style="padding-left: 18px">
<div class="row">
<div class="col-sm-12, small">
Feel free to select more than one purpose per ticket e.g. email + instant messaging. Such purpose combinations will only proportionally affect purpose statistics. Please do not use online time that was initially requested for purposes of the category
"Not affecting personal quota" (e.g. chores) also for checking personal emails, instant messaging etc. Instead, request separate internet access by selecting the desired purpose category e.g. email; instant messaging etc.
</div>
</div>
</div>
</div>
<div class="form-group row">
<label for="userPassword" class="col-sm-1 col-form-label">Password</label>
<div class="col-sm-6">
<input type="password" class="form-control" id="userPassword" placeholder="Password">
</div>
<div class="col-sm-5, small" style="padding-left: 18px">
Please use combination of letter, symbol & number.
</div>
</div>
</fieldset>
</form>
</section>
</div>
</body>
Encountering issues when the screen width is reduced, where rows with multiple lines are not behaving as expected. For example:
1. Label (Purpose) position changed:
https://i.sstatic.net/QRTqs.png
2. No text padding:
https://i.sstatic.net/NKdjj.png
Update:
Discovered that the issue of 1. Label (Purpose) position changed stems from using col-md-1 for the purpose label. Switching it to col-sm addresses the problem. Here's the updated version:
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<div>
<section class="content container-fluid">
<form id="submitForm">
<fieldset>
<br>
<div class="form-group row">
<label for="userId" class="col-sm-1 col-form-label">User</label>
<div class="col-sm-6">
<select class="form-control" id="userId">
<option value="1">Alex</option>
<option value="39">Kent</option>
<option value="6">Nick</option>
</select>
</div>
<div class="col-sm-5 small" style="padding-left: 3px">
If your name is not available, please contact the Officer.
</div>
</div>
<div class="form-group row">
<label for="purposeNames" class="col-sm-1 col-form-label">Purpose</label>
<div class="col-sm-6">
<input type="text" id="purposeNames" class="form-control" placeholder="Purpose" />
</div>
<div class="col-sm-5 small" style="padding-left: 3px">
Feel free to select more than one purpose per ticket e.g. email + instant messaging. Such purpose combinations will only proportionally affect purpose statistics. Please do not use online time that was initially requested for purposes of the category
"Not affecting personal quota" (e.g. chores) also for checking personal emails, instant messaging etc. Instead, request separate internet access by selecting the desired purpose category e.g. email; instant messaging etc.
</div>
</div>
<div class="form-group row">
<label for="userPassword" class="col-sm-1 col-form-label">Password</label>
<div class="col-sm-6">
<input type="password" class="form-control" id="userPassword" placeholder="Password">
</div>
<div class="col-sm-5 small" style="padding-left: 3px">
Please use combination of letter, symbol & number.
</div>
</div>
</fieldset>
</form>
</section>
</div>
</body>
The remaining issue now is the text padding. While padding-left 3px works well in full-screen mode, it's not ideal when the screen size decreases: