Style and layout form controls
mainPrimer CSS provides styles for individual form controls and common layouts.
Key behaviors:
- Resets: Default styles for
<fieldset>s, WebKit validation bubbles, and textual<input>s are reset for cross-browser consistency. - Automatic Styling: Specific types of textual
<input>s are styled automatically. Use the.form-controlclass if you need to apply these styles manually. - Buttons: Always declare a
typeattribute on your<button>elements. - Layouts: Form layouts rely on the use of form groups. Note that form controls do not have a default layout (like vertical stacking) built-in; you must use
<fieldset>s,<div>s, or other elements with custom styles to arrange them.