.navbar-left - Aligns nav links, forms, buttons, or text, in the navbar to the left - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:navbar-left

Description

.navbar-left - Aligns nav links, forms, buttons, or text, in the navbar to the left

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
</head><!-- w  w  w .j  a va  2s .  c om-->
<body>

<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
  <form class="form-inline">
    <input class="form-control" type="text" placeholder="Search">
    <button class="btn btn-success" type="button">Search</button>
  </form>
</nav>
<br>

<div class="container">
  <h3>Navbar Forms</h3>
  <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p>
</div>

</body>
</html>

Related Tutorials