The responsive navbar is one of the most important components Bootstrap 4 offers. With the Bootstrap 4 navbar help, you can easily add an automatically-collapsing (configured by you though) navbar to connect the different pages of your website. Learn more about the navbar core concepts in this Bootstrap 4 tutorial.
Source Code for the Video: https://github.com/academind/bootstrap4-introduction/tree/03-navbar
Watch the Series on academind.com: https://www.academind.com/learn/css/bootstrap-4-tutorial/responsive-navbar
Official Navbar Docs: http://getbootstrap.com/docs/4.0/components/navbar/
• You can follow Max on Twitter (@maxedapps).
• And you should of course also follow @academind_real.
• You can also find us on Facebook.(https://www.facebook.com/academindchannel/)
• Or visit our Website (https://www.academind.com) and subscribe to our newsletter!
See you in the videos!
Hello. Very good video, however, i've had some trouble adding "transition" to my navbar. I am trying to change a bit to the navbar so that instead of clicking, the drop-down menu in navbar will automaticly come forth, but smoothly using the transition in CSS... is this possble? Had trouble adding it. Hope you can help.
this guy is great, he has such an in depth understanding that he doesnt have a problem breaking things down clearly...that in itself shows knowledge....other guys dont really get everything and just blag their way through.
I am expecting a video from someone like you that shows how to create multilevel drop down menu using bootstrap. Could you please do that for us? It is really strange to limit a dropdown menu to just one level only - the only lacking I see with bootstrap.
This is wonderful. I used it to get some quick study for the middle of the Udemy python/django course. I'll pay for one of your udemy courses next!
I especially appreciate your style of teaching, leading us to add things for good reasons, experience the problem, and add the next thing.
I spent a long time reading the official documentation on navbars and just couldn't wrap my head around what each class and section was doing in their given example. Love your style of teaching man it all makes sense now, you break everything down bit by bit and at the perfect pace. Keep up the great work!
As always, such extremely helpful content from Max.
Question: Why at 10:15 seconds does Max suggest importing the CDN links at the end of the body whereas the css bootstrap links he imported just before the title?
Hey Max. i want to tell you something that you are the best. Because i have purchased few courses and i was not able to understand the detail about the NAV. The way you have explained its just wow. I wish i can find your complete course on Bootstrap if i do i believe i will be Master on Bootstrap. By the way i have already enrolled my self on your CSS - The Complete Guide (incl. Flexbox, Grid & Sass) course. I hope i will find it the same quality and will learn the best. Thank You so so much.
You are always welcome. Yes i can understand that but if you would have created such bootstrap course i would have been definitely enrolled my self into it. Yes i believe that i will be learning alot in that CSS course. I do have a bit knowledge but i want to gain more. Thank you for teaching us Max. Really appreciated.
Thank you very much for your awesome feedback and for your support Kumail, this really means a lot to me me! I do not plan to create a Bootstrap course at the moment to be honest (that might change in the future though). Great to read that you joined the CSS course, I really hope that you will like it :)
try adding your own custom class to your nav so for example: <nav class="navbar navbar-expand-sm customnavclass">
Then in your styles section add the class and make it have the property background-color: yourcolor. So that would look like:
Hi, thanks for the tutorial, I like how to explain step by step. Just one question. When i have a hamburger button how i manage to make it close after I click an option having inside also a dropdown menu?, I'm asking because i manage to sort it out to close when i do a click on a link, but if the menu have a dropdown list, its close before showing the options. Thanks for your time if you can help me. Cheers
I've been struggling a lot with Bootstrap 4, specially with the Navbar, and you sir, have given me the knowledge. I really appreciate how you went by each class basically and and showed how each one of them worked. I insta-subscribed. Great work and thank you!
... not everywhere. defer is out there
Thanks! As I wrote, I agree that it's an "interesting" option and definitely something we should consider - especially for the future. I don't see enough of a disadvantage of the old way to abandon it though. Especially for simply projects like this one.
Well the disadvantages are that your scripts are only loaded after the enitre DOM has finished parsing, which will lead to longer loading-times on bigger sites.
And according to https://getbootstrap.com/docs/4.0/getting-started/browsers-devices/ you should use bootstrap3 if you need IE8-9 support.
So it seems a little overcautious to load scripts "the old way" in a bootstrap4 tutorial since defer is fully supported in IE^10 (https://caniuse.com/#feat=script-defer). just my thoughts on the subject. anyway... nice tutorials & udemy courses, keep up the good work!
defer is an option but it's wrong that this would be stricly better. Browser support for defer has improved, so you probably get away with that but placing the script at the bottom has very little disadvantages and will work in older browsers, too. Still worth knowing about defer, I do agree about that
the solution i have made myself just activate both click and hover click for media screen and hover for desktop screen by make css hover for desktop and click function with jquery for mobile hhhhh how is it ? ,,,,,,
That does not have an easy fix and I'm sure you can find the answer on Stackoverflow, I know I was asked to do that in the past (with Bootstrap 3) and it wasn't really that easy to achieve. It is an issue because many people will ask to just do a hover instead of having to click not knowing that well, that's how Bootstrap works.
Dropdown on hover solution:
add this at the end of your index file before closing the body tag:
And this to your css:
That should do the trick. :)
For the tiny things, vanilla JS can pretty much do everything you need these days and for bigger web apps/projects, you quickly end up in a (state management) mess with jquery. That's why I avoid it ;)
I don't think there is another video on youtube, that covers Bootstrap 4 navbar by breaking the classes piece by piece like you did!! Simply brilliant, and probably the most transparent demonstration!! I follow you here, as well as have subscribed to your multiple courses on udemy. You keep up the super work you are doing!!
Thank you very very much Saidur, it really means a lot to me to receive such an amazing feedback! I really try my best to explain the concepts step by step, so I'm very happy to read that you like it :)
do you really think that bootstrap a very good choice for reactjs or angular because for angular we have things like angular material but reactjs there is no other thing worth like it. so i would like to use bootstrap with reactjs
It comes down to which kind of style you want AND if you want a complete component library like Angular Material or a library like Bootstrap where you have the choice between style-only components and JS-based components.
Men and women have at their disposal an array of resources for generating greater knowledge of truth so that their lives may be ever more human. Among these is philosophy, which is directly concerned with asking the question of lifes meaning and sketching an answer to it. Philosophy emerges, then, as one of noblest of human tasks. According to its Greek etymology, the term philosophy means "love of wisdom". Born and nurtured when the human being first asked questions about the reason for things and their purpose, philosophy shows in different modes and forms that the desire for truth is part of human nature itself. It is an innate property of human reason to ask why things are as they are, even though the answers which gradually emerge are set within a horizon which reveals how the different human cultures are complementary.
Philosophys powerful influence on the formation and development of the cultures of the West should not obscure the influence it has also had upon the ways of understanding existence found in the East. Every people has its own native and seminal wisdom which, as a true cultural treasure, tends to find voice and develop in forms which are genuinely philosophical. One example of this is the basic form of philosophical knowledge which is evident to this day in the postulates which inspire national and international legal systems in regulating the life of society.
Nonetheless, it is true that a single term conceals a variety of meanings. Hence the need for a preliminary clarification. Driven by the desire to discover the ultimate truth of existence, human beings seek to acquire those universal elements of knowledge which enable them to understand themselves better and to advance in their own self-realization. These fundamental elements of knowledge spring from the wonder awakened in them by the contemplation of creation: human beings are astonished to discover themselves as part of the world, in a relationship with others like them, all sharing a common destiny. Here begins, then, the journey which will lead them to discover ever new frontiers of knowledge. Without wonder, men and women would lapse into deadening routine and little by little would become incapable of a life which is genuinely personal.