Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
GreenGeeks Web Hosting - Faster, Scalable & Eco-Friendly

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


7,804 questions

10,890 answers

573 users

How to create fixed navigation bar at the top of the page in Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <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">
</head>

<body style="height:1600px">

<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">YourWebSiteName</a>
    </div>
    <ul class="nav navbar-nav">
      <li class="active"><a href="#">Home</a></li>
     <li><a href="#">PHP</a></li>
     <li><a href="#">JavaScript</a></li>
     <li><a href="#">HTML</a></li>
     <li><a href="#">CSS</a></li>
    </ul>
  </div>
</nav>
  
<div class="container" style="margin-top:100px">
  <h2>Bootstrap fixed navigation bar at the top of the page</h2>
    Bootstrap is the most popular HTML, CSS, and JS framework for developing 
    responsive, mobile first projects on the web.
    <h3>Designed for everyone, everywhere</h3>
    Bootstrap makes front-end web development faster and easier. 
    It's made for folks of all skill levels, devices of all shapes, 
    and projects of all sizes.
</div>

</body>
</html>

 




answered Jul 22, 2017 by avibootz
...