Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

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
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

Perfect.  Thank you!
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;
}

Open in new window

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.