Bob Schneider
asked on
Top Alignment in Bootstrap Form
How can I get the labels and other form controls to align at the top of the form on this page?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome.
Just a note - that style will affect all your forms. You might want to restrict it only to the form at the top of the page. Give the form a class (say 'topform') and then prefix the above styles with that class
.topform .form-inline .form-control {
vertical-align: top;
}
ASKER
Thanks. This particular page will only have one form but I appreciate the heads up.
No problem - it is good practice anyway, sites change and you forget things - can cause unnecessary loss of time tracking down side effects.
ASKER