.navbar-link - Styles an element to look like a link inside the navbar - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:navbar-link

Description

.navbar-link - Styles an element to look like a link inside 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  www.  j  av  a 2s. c o  m-->
<body>

<nav class="navbar navbar-default">
  <div class="container-fluid">
    <div class="navbar-header">
      <a href="#" class="navbar-brand">Brand</a>
    </div>
    <p class="navbar-text">Signed in as <a href="#" class="navbar-link">test test</a></p>
    <p class="navbar-text">Signed in as <span class="navbar-link">Span Test</span></p>
  </div>
</nav>

<div class="container">
  <h3>Navbar Link</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>
  <p><b>Hover over the a and the span element to see the effect.</b></p>
</div>

</body>
</html>

Related Tutorials