Editor ► Run
Copy
<nav class="navbar navbar-light bg-light">
  <form class="form-inline">
    <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
  </form>
</nav>
Copy

                
Copy

                

{} CSS Resources


https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css
Bootstrap 4 Navbar Forms - Using Inline Forms