.navbar-static-top - Removes left, top and right borders from the navbar - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:navbar-static-top

Description

.navbar-static-top - Removes left, top and right borders from the navbar

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/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head><!--from w ww .  j a  va 2 s  . co  m-->
<body>

<div class="container">
  <h3>Navbar Static Top</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>

  <h3>With Navbar Static Top</h3>

  <nav class="navbar navbar-default navbar-static-top">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">WebSiteName</a>
    </div>
  </nav>

  <h3>Without Navbar Static Top</h3>

  <nav class="navbar navbar-default">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">WebSiteName</a>
    </div>
  </nav>
</div>

</body>
</html>

Related Tutorials