Run
Online Code Editor
Bootstrap Example
Search
Navbar Forms
Use the .form-inline class to align form elements side by side inside the navbar.