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?
Bob SchneiderCo-OwnerAsked:
Who is Participating?
 
Julian HansenConnect With a Mentor Commented:
Try adding this style to your custom styles
.form-inline .form-control {
  vertical-align: top;
}

Open in new window

0
 
Bob SchneiderCo-OwnerAuthor Commented:
Perfect.  Thank you!
0
 
Julian HansenCommented:
You are welcome.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Julian HansenCommented:
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

0
 
Bob SchneiderCo-OwnerAuthor Commented:
Thanks.  This particular page will  only have one form but I appreciate the heads up.
0
 
Julian HansenCommented:
No problem - it is good practice anyway, sites change and you forget things - can cause unnecessary loss of time tracking down side effects.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.