


You can see the code for the other sections of the template by downloading it below.Īs you can see above, we use a link with the class “navbar-brand” for the logo. I’m showing only the code of the navbar here. Next we open the documentation of the Bootstrap 4 navbar component and create the HTML code of our top menu:

Here you can see the Bootstrap 4 libraries that we need to import. I’ve also added some other sections in this page to better illustrate the navbar functionalities.įirst we add all the needed libraries: in the “head” part the CSS libraries, and at the end of “index.html” the JavaScript libraries. In the “index.html” file we’ll have all the HTML code of our template including the code of the navbar. The new Bootstrap grid: the documentation page.The rem CSS unit: an article to understand it.Flexbox layout module: a complete guide.They’ll help you become more familiar with this new version and see what has changed. The top menu will have a transparent background that, when the page scrolls down, will change and become a solid color background.īelow you can see a live preview and, at the end of the tutorial, you can download the navbar template with all its files.īefore we begin I recommend you read a few articles about the version 4 of Bootstrap, if you haven’t already. In this tutorial we’re going to create a simple Bootstrap 4 navbar / top menu with a logo and a few menu items that, when clicked, make the page scroll to the desired section. Adding Animation To The Navbar’s Background I hope you’ll learn one or two things from this tutorial. It will be a simple yet very functional top menu, an important part to have in the header of your websites. Today we’re going to create another navbar together, this time using Bootstrap version 4. I use them in almost all my templates free and premium. In the past I’ve created and published various Bootstrap navbar templates that you can find here, here and here.
