Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original
Bootstrap Input Groups
Bootstrap Input Groups
This chapter explains another feature supported by Bootstrap: input groups. Input groups extend from the form control. With input groups, you can easily add text or buttons as prefixes and suffixes to text-based inputs.
By adding prefix and suffix content to an input field, you can add common elements to user input. For example, you can add a dollar sign, an @ before a Twitter username, or other common elements required by an API.
towards .form-control The steps to add a prefix or suffix element are as follows:
Place the prefix or suffix element in a container with class .input-group 's
it.
Next, within the same
, in the element with class .input-group-addon 's place the additional content.
Place the wrapper before or after the input element.