Bootstrap 4 Tutorial
An symbol, text, or button can be added in front of or behind an input field as a “help text” using the .input-group class as a container to improve an input.
To add the help text in front of the input, use .input-group-prepend; to add it behind the input, use .input-group-append.
To style the provided help text, add the .input-group-text class last.
For small input groups, use the .input-group-sm class; for big input groups, use the .input-group-lg class:
Add more than one input or add-on:
In place of text, you may also utilize radio buttons or checkboxes:
Place labels outside of the input group and keep in mind that the input’s id and the value of the for attribute must match.
The input will become more focused when you click on the label:
Enter your email address here:
@example.com
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.