To add plain text next to a form label in a horizontal form, apply the .form-control-static class to a <p> element.
The .input-group class is a container that allows you to enhance an input by putting an icon, text, or button in front or behind it as a “help text”.
The .input-group-addon class adds an icon or help text next to an input field.
The .input-group-btn tag places a button next to an input. This is frequently used along with a search bar:
The following example shows several of the form control states mentioned above in a horizontal form:
Here’s an example of several form control states in an inline form:
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.