Navbar is the most important thing in any website because user's can find out your website materials easily using navigation links. but in this article i will show you how to create transparent navbar very easily
Navbar is the most important thing in any website because users can find out your website material's easily from the navigation bar, using navigation bar links. In this article, I will show you how to create transparent navbar using the bootstrap technique. why use bootstrap? because bootstrap is a quick tool to create an awesome website in less time. Now I show you what type of transparent navigation bar we will create in this article.
this type of transparent navigation bar we will create how to create this navbar, first go to get bootstrap and download bootstrap framework. Now we want to download HD quality image because for background we use the image. go on this link pixabay.com to download HD quality image.
after downloading bootstrap and image now we create HTML page which name is index.html and link your bootstrap CSS file in the index.html page which CSS file place in bootstrap/css/bootstrap.min.css and also you need to copy navbar code from bootstrap.com OR you can also copy from here which are below
for complete details watch this video thank you and subscribe my youtube channel to get the latest updates in the email box
after downloading bootstrap and image now we create HTML page which name is index.html and link your bootstrap CSS file in the index.html page which CSS file place in bootstrap/css/bootstrap.min.css and also you need to copy navbar code from bootstrap.com OR you can also copy from here which are below
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Bootstrap Transparnent Navbar</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <style> body{ background: url("https://cdn.pixabay.com/photo/2017/08/23/08/33/cats-eyes-2671903_960_720.jpg"); background-repeat: no-repeat; background-size: cover; } .custom-nav{ border-radius: 0px; border:0px; background-color: rgba(0,0,0,0.5); -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); box-shadow: 0 0 10px rgba(0,0,0,0.5); } </style> </head> <body> <nav class="navbar navbar-default custom-nav" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Title</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">Submit</button> </form> </div><!-- /.navbar-collapse --> </div> </nav> </body> </html>after copy navbar code and paste in your file now we need to create another custom CSS file where we modify bootstrap navbar. add a custom class in the <nav> tag which name is change-nav like this <nav
class
=
"navbar navbar-default change-nav
> and we will only modify the change-nav class in the costom.css CSS file and add some code for background image the code is below.for complete details watch this video thank you and subscribe my youtube channel to get the latest updates in the email box
COMMENTS