1. Bootstrap Responsive Sticky Navigation Bar | Responsive Menu
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Sticky NavBar Using Bootstrap</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<section class="header-text">
<div class="container text-center">
<h2>Bootstrap Responsive Sticky NavBar</h2>
</div>
</section>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary sticky-top">
<div class="container">
<a class="navbar-brand" href="#">Logo</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto justify-content-end w-100">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Abouts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">ContactUs</a>
</li>
</ul>
</div>
</div>
</nav>
<img src="bg.jpg" alt="" class="img-fluid">
<section>
<div class="container">
<h2>This is lorem</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.
Magnam quasi quos repellat obcaecati doloribus voluptate ratione ab sapiente,
impedit ipsum aspernatur nisi. Nostrum et eligendi aliquid mollitia voluptatibus
nisi laudantium?</p>
</div>
</section>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js"
integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s"
crossorigin="anonymous"></script>
</body>
</html>
style.css
.header-text
{
padding: 10px 0;
}
Click Here To Download Code
0 Comments