PHP Forms Usage

Styling

Selector Description Sample style
.form-checkbox Class added to all checkbox labels (wrapping the input field).
/* add some margin to checkboxes (useful in groups) */
.form-checkbox {
	margin-right: 15px;
}
.form-group Class added to row wrapper for for groups.
.form-addon Class wrapping addons and field when addons are used.
/* suggested structural style */
.form-addon {
	display: inline-table;
}
.form-prefix, .form-suffix Class added to addons.
/* suggested structural style */
.form-prefix, .form-suffix {
	display: table-cell;
	width: auto;
}
.form-group Class added to row wrapper for for groups.
.required Class added to row wrapper for all required fields.
/* adds a red asterisk after the label */
.required label:after {
	content: '*';
	color: #a00;
	margin-left: 5px;
}
Fork me on GitHub