How to Create Responsive Navigation Bar using HTML and CSS
How to Create Responsive Navigation Bar using HTML and CSS
In this video, I have shown you how to create a responsive navigation bar using html and css only
NOTE: Nowadays that font awesome link I provided not support so your icon may not be showing. Please use the latest CDN link which you can easily find on Google.
Hire me on Fiverr
www.fiverr.com/prakashahi
Responsive Sticky Navigation Menu Bar in HTML & CSS
Watch: • Responsive Sticky Navi...
Responsive Dropdown Mega Menu in HTML & CSS
Watch • Responsive Mega Menu a...
Download Codes From Here (You may have to search the title of this video there): codingnepalweb.com
Second Channel - bit.ly/3aHNkru
My Code Editor - • Best Text Editor for H...
Facebook - / coding.np
Instagram - / coding.np
Music used in this video - Cryptic Sorrow
Пікірлер: 2 000
Responsive Sticky Navigation Menu Bar in HTML & CSS Watch: kzread.info/dash/bejne/h3yHx6ixiqzbpps.html
@bestmoments4908
4 жыл бұрын
In navigation place instead of hover option is any way is available to click action Becuase while moving cursor in any other place is disappear
@vaibhavbhandare7177
4 жыл бұрын
Html5 css3 js website demo please
@GamingUpToDateNP
3 жыл бұрын
mero chalena
@WonderD0
3 жыл бұрын
@@AbhishekKumar-sm7or po
@hangeldiatajanov875
3 жыл бұрын
Hi. How are you? Why it doesn't work. I wrote all the codes. What's problem?
Never thought i could cry making a nav bar, but this music got me
@CodingNepal
3 жыл бұрын
☺️☺️
@karlabellana9294
3 жыл бұрын
@@CodingNepal WAHAHAHAAHAHAHHA me too im about to cry now :(
@walberamorimsp
3 жыл бұрын
Ahahaha
@jindagigulzar7917
3 жыл бұрын
Same here brother
@sulaimandev
3 жыл бұрын
😂😂
I just want to thank you for 3 reasons: 1. For being so helpful by replying on the comments of people's doubts! 2. For giving the source code(with a few necessary details) 3. For making this wonderful tutorial! And thus,you got yourself a subscriber..Keep helping us like that!
@CodingNepal
3 жыл бұрын
Thank you so much for your appreciation.. Stay tuned 💙
@gamingandinfopoint6679
2 жыл бұрын
Hey man can u please give me a source code here !
@desarrollou71x72
6 ай бұрын
i want to thank you too.. we need people thanking people who help people too..
Handy tip for all you devs out there when making an unordered list in visual studio. Instead of copy-pasting the element several times, hold Alt and Shift and press the down arrow to duplicate the current line. Press the down arrow as many times as you want to duplicate even more. Also, I'm not sure about using left: -100% and left: 0 to move the menu instead of transform: translateX(-100%) and transform: translateX(0). If I recall correctly transform is more performative than using left. Great tutorial though, I'm looking to use more CSS only solutions in my own designs.
@oltomcat2106
Жыл бұрын
Thank you sir 👍
@Hrit
Жыл бұрын
Thanks :)
@cureadan-emilian2579
Жыл бұрын
or you can use ul>li*3 and you will have 3 of li nested in ul ;P
@coolberggaming5390
Жыл бұрын
Ohh wow this just help me a lot👏🏾👏🏾 THANKS!!
@veronicajarido3743
3 ай бұрын
Good input. Also for Mac you use combination of Option + shift and down arrow.
He is talented in creating websites. Me: i am talented in watching the talents of others
@CodingNepal
3 жыл бұрын
Hahah 😂😂
@Yoshitha-fq9en
3 жыл бұрын
Same here😆
@bridget7223
3 жыл бұрын
you made me chuckle for i too am talented at watching the talent of others
@asifhossain2088
2 жыл бұрын
@@bridget7223 lol
@syukronofficial8023
2 жыл бұрын
one voice
Who chose the music? Came here for burger bar and left suicidal 😭😭😭😭
@anshupriya3313
Ай бұрын
😂😂😂ishliye roo rahe hoo
this is what I need. No talking, no explanation just a master at work demonstrates how it's done. I learned so much in 7:59 mins. Thanks a lot!
@mbahchris1188
2 жыл бұрын
Sometimes talk is important cause I didn't know why he did some things here
@victoriaburns296
11 ай бұрын
@@mbahchris1188 once you learn what each thing do then it’s easy to follow along
I generally dont comment on youtube videos but this is the best and the simplest of tutorials on navbar on internet. I cant express my gratitude to you for this tutorial. I have literally searched for 2 days about how to make a simple navbar until i came across your video.
took me ages to figure it out but i managed to make it work and then bootleg it in my own code. awesome stuff man.
we need to use ->(area-hidden="true") inside tag, to get hamburger.
That was so amazing, I couldn't imagine myself learning how to make a responsive nav bar in under 10 mins.... You're the best pal🚀🚀
@oltomcat2106
Жыл бұрын
You might help me? Woud be greatI can't get it to work. Fontawesome link is called different and no icon appears. I am not shure if its the link or the fas fa-bars command or an interaction of it, is the issue, why no icon appears. I did everything exactly by template. By the way: Original files even don't work (no menu icon with its function).
Thanks for this video, the key is placing a input checkbox to hold the state of OPEN CLOSE the mobile menu, for a ZERO JS website this is lit!
Thank u. Em cheppagalam inthakannaa. Really u decreased my stress levels to down about nav bars.
I really like this video! I have been browsing KZread for a while now to find a video like this. Love from India. :)
@CodingNepal
4 жыл бұрын
Keep watching and supporting :)
I like that you demo in the beginning then again after. Thanks for that.
@CodingNepal
4 жыл бұрын
Thank you...Keep watching our other videos :)
hands down the best tutorial about responsive navbar I have found, thank you
You gained yourself my new subscriber!!! This is because I've learned how to code a website's navbar from this video. It is useful for me in the near future, because there might be school projects that require your coding skills, and creating my dedicated website for my YT channel, which I might utilize HTML-CSS skills. I've stuck trying to relocate the Navbar links inside the Navbar box until I've found your video Looking forward for a tutorial on how to add hover dropdown inside Navbar box.
Thanks, been battling to find just this!!
@CodingNepal
4 жыл бұрын
Thank you.. Keep watching nd supporting ❤️
the fact that I got a wix ad make me mad
A great trutorial for growing concepts.Specially newbies like me who learned a lot of syntax but still don't know how to apply those and make cool things. It was really helpfull. Best of luck.
@CodingNepal
4 жыл бұрын
Thank you 💙.. Keep watching
@fidbih
4 жыл бұрын
You are welcome.❤
@CodingNepal
3 жыл бұрын
Same problem I had also faced when I was also new in this field.. Then I started channel and for making a video I create a new design per week and uploaded on this channel.. And slowly slowly it became easy and familiar to apply codes and make cool things.
@CodingNepal
3 жыл бұрын
You're welcome... Keep watching my videos and best of luck for your work.
@CodingNepal
3 жыл бұрын
Watch my new videos also... You won't be disappointed.
I'm a visual learner and these type of vids really helps! thank you sm
Believe me! This is the shortest version I have seen. I am surely adapting this one as a template - as I like less-complicated designs. Thank you so much. I read from somewhere, that if a function can be achieved using CSS and HTML, then there is no need putting an additional Javascript. Thank you for this demo.
@CodingNepal
3 жыл бұрын
Glad it was helpful!
Nice idea of using a checkbox as a indicator for activating the menu bar instead of using javascript 😁. 👍👍👍
The classical music on the background makes it so peaceful to learn!
Muito bom! rapido e facil de entender.
Big thanks for this. Great help for me for starting learning html and css ❤️
@CodingNepal
2 жыл бұрын
Glad it was helpful :)
First of all: nice video and comprehensible presentation. However, I have 3 more or less critical remarks: 1) never use px units in responsive layouts unless you need to 2) never use tags with a physical representation such as (use instead and define the representation through css) 3) I recommend to use the Flexbox module for such type of navigational design; it is more flexible, direction-agnostic and provides a coherent design
@CodingNepal
4 жыл бұрын
Thank you so much for suggestions...I really appreciate your suggestion :)
@stefanzander5956
4 жыл бұрын
@@CodingNepal You are welcome! CSS offers so many realisation possibilities. A lot of people (me included) appreciate the efforts you did in creating that video.
@LeadCode1
4 жыл бұрын
sir can u tell me how that collapsing happing on click i cant get it.
@safouaneahmedsalah6233
4 жыл бұрын
@@LeadCode1 he used checkbox to toggle the mobile menu. In html you can check the input checkbox from the label element when you refer to it using "for" attribute Toggle icon here
@LeadCode1
4 жыл бұрын
@@safouaneahmedsalah6233 thnku sir i m going try it now.
This responsive navigation bar which is using HTML, CSS was very simple.Thanks for sharing.
Of all I have seen you have got the shortest videos thank you soo much
Brilliant task you have done, may be I would never forget you. Keep sharing your skills & patience with us. May almighty grant you...
@CodingNepal
3 жыл бұрын
Many many thanks
This is the only one that worked for me. Now im on another level with is, thanks a lot pal
@CodingNepal
4 жыл бұрын
You're welcome. Please visit our channel for related more contents.
never thought that it could be so dificult, but the music make me want to do it again and again
I spent hours trying to find something like this. You saved my life. I loved the video and the music
@CodingNepal
3 жыл бұрын
Thank you and don't forget to visit this channel for more helpful videos.
i love how you can see what every line does :) more channels sound record this way
@CodingNepal
4 жыл бұрын
Thank you 💙... Keep watching
Thank you for highlighting the meta data at the beginning! I was wondering why my logo was shrinking when resizing the viewport! All it took was that meta tag in the header that sets content to device width!!
@CodingNepal
4 жыл бұрын
Your welcome :)
I always struggled understanding css, i get some of it, however your video has helped me finally finish my web project :)
@CodingNepal
2 жыл бұрын
Glad it helped!
THE MOST PRECISE AND AMAZING VIDEO! TO THE POINT✌
Thank you very much! I am really appreciated for what you've done! The NavBar looks actually very nice! Next time. I'm going to use your website to follow the codes! Your codes are great!!
@CodingNepal
3 жыл бұрын
You're welcome bro 💙
Great tutorial, man! Greetings from Brazil! Thank you!
@CodingNepal
4 жыл бұрын
Your welcome 💙
Still helpful up till this day. Thanks alot
It's just amazing thank you so much man !! 🙏🏼🙏🏼
Can't Go back without liking.......👍👍 (background music was so Awesome & relaxing )
@CodingNepal
3 жыл бұрын
Thank you
Great tutorial man, it was so helpful. NIce background music too!
@CodingNepal
3 жыл бұрын
Thank you.. Stay tuned 😁
Pretty Amazing. Loved it how you created it. Just Wow.
awesome video thank you so much for taking the time out to make it idk if anyone else is having this problem because they dont take time to read like myself lol i couldnt get the fas fa-bars to work at first because you have to go to font awesome and get your own personal code took me about 20 minutes to realize that lol figured id comment to see if it saves anyone else some trouble
Thanks man, you have no idea how much your video is helping us
@CodingNepal
2 жыл бұрын
Happy to help!
Thank you so much for this tutorial! It is exactly what I have been looking for. Keep doing videos like this please!
@CodingNepal
4 жыл бұрын
I really appreciate your comment :)
Awesome, this helped a lot. I am more of a python kinda guy. But I need to put together a site to showcase my projects. I am running this through python/flask though, and it does not seem to do exactly what yours does. But pretty close. Thanks, I better go figure it out.
So easy to understand. Love everything about it. Keep it up ☺️
Great Job
@CodingNepal
4 жыл бұрын
Thank you... keep watching :)
Me encantó el diseño, intenté tres veces para que me salga y me salió
This is very useful and effective tutorial I have ever watched. Thank you so much for this.
Thanks man, you really helped me to finish a project. ;)
Great tutorial! whats impressive is that even the climax is sync with background music! see at 6:29
@Emekaelo
4 жыл бұрын
😂
Thanks amazing bro! Congratulations... Not just the content is relevant and artistically beautiful, but also the soundtrack is somehow uplifting and leave us with a good sensation sort of nostalgia! I'll spread this message for sure. Thanks once again!
@CodingNepal
3 жыл бұрын
You're welcome bro.. Stay tuned 😁
Increadibly easy to follow amazing thank you!
@CodingNepal
3 жыл бұрын
You're welcome 💙
Thanks for creating such a master piece! :)
YOU SAVED MY EVENING!!!
@CodingNepal
3 жыл бұрын
Glad to hear that
its amazing..thank you.😊😊
@CodingNepal
4 жыл бұрын
Thank you so much :)
I live in England this does really help love to Nepal ♥️
i learned a few things. Only thing i would add is that padding is usually bad practice, especially for nav. The padding exceeds the nav and interrupts other elements from my experience. So even if elements are absolute i still ran into a positional error.
menu HTML, css beautiful
@CodingNepal
4 жыл бұрын
Thank you 💙
Creative contents 😍
@CodingNepal
4 жыл бұрын
Thank you
How beautifully define 🥰 everythings goes setup in my mind lovely ❤
Thanks to the creator ! You did a great job in this video🎉🎉
This is great man, I' m new to coding and was wondering how do you get HTML and CSS ?
@CodingNepal
4 жыл бұрын
Keep learning..
I searched nav bar but emotional
Du travail bien propre, du code compréhensible, pas de merdasse bootstrap ou autre ... Parfait.
That was simply put AWESOME AND EMOTIONAL AS HELL.
Great Tutorial! I am having trouble putting the menu in a block postion. The command is around lines 68 - 76 in the css
@CodingNepal
3 жыл бұрын
You can download codes from description link.
@SweetPeachannel
2 жыл бұрын
hi i have same issue. Did you figure out please? hope you don't mind to share.
*To the everyone reading this* : Sending Virtual hugs to everyone who needs it, Stay Safe! 😷
@indianathe3rd742
3 жыл бұрын
What's with the mask
@shadeify2331
3 жыл бұрын
@@indianathe3rd742 c o v i d ?
Great tutorial. Thanks for your time in doing this video
Thank you for posting this. This was very helpful!
Thank you for this! Easy tutorial, no talking, just watch and learn!
Awesome trick with the checkbox to avoid using javascript at all. Nicely done!
@CodingNepal
3 жыл бұрын
Thank you 💙
Great job! Thanks for sharing this video. And please can you provide a link to the html & css code?
Love ur nav bar can u explain how to make the bar sticky so it stays in its spot? It would help me alot thanks again
@CodingNepal
4 жыл бұрын
Watch this video: kzread.info/dash/bejne/mZt6l6x9XdqolbA.html
@thinkingaloud7925
4 жыл бұрын
header{ position :sticky }
Great Sir
@CodingNepal
4 жыл бұрын
Thank you...keep supporting ❤️
I see, so it is also possible to centralize with the use of line-height, I seriously forgot about that property and never experimented with it. Gonna give it a try.
Huge fan from Punjab,india,Nepal after the nepali prime minister's comment on god ram all indian decided to call themselves as a nepali lots of love from india,Nepal
@CodingNepal
3 жыл бұрын
Haha 😂... Keep watching bro
Hey, thank you for this tutorial! It's so helpful. But I have a small problem here. When I resize the page to the size after the max-width (768px and also after 925px), the Home, About, etc. buttons moved below the top banner (it went outside the blue box with the logo) and mixed up with the background. Is there any way to fix this? It'd be easier to explain with photos but sadly youtube doesn't have that option here :"
@CodingNepal
3 жыл бұрын
Decrease the padding of the navbar and the logo size inside media property.
@nour3660
2 жыл бұрын
@@CodingNepal i got a problem too, when i resized the page like you, it didn't appear, also the checkbox is there instead of the menu
@goran-is6zr
Жыл бұрын
@@nour3660 same problem i have also
@loekiouwerkerk2114
Жыл бұрын
@@goran-is6zr You probably need a different link for the fa fa bars
@laper7284
Жыл бұрын
Se atentem a versão do fontawesome
It is a nice responsive navbar
@CodingNepal
3 жыл бұрын
Thank you.. Stay tuned 😁
Great video! Very informative. And the silent-era piano melody is beautiful
@CodingNepal
Жыл бұрын
Glad you liked it!
Thanks for providing the code, this really helped me.
😊😊👍
I cant stay alive without giving you a salute
@CodingNepal
3 жыл бұрын
Glad to hear that 😁
You are awesome!! Much respect 🙏🙏
Thank you so much for this video this helped me out so much since I'm new to coding but I came across a problem where I can't scroll down and it's really making me frustrated and confused
me: doing the same and end with a list without any colour or in the right order... thinking about quitting with life Xd
@aromus1c
3 жыл бұрын
hahahahahahaha
Hi! Great tutorial, but I had a problem getting the logo to be big it is still small. How do I Fix this?
@CodingNepal
4 жыл бұрын
Contact me on insta - instagram.com/coding.np
@soumyadeepchatterjee2189
3 жыл бұрын
you need to add a width and height property to that logo eg:
Excelente. Gracias. Muchas gracias. Quito.-Ecuador.
subscribed my friend!
@CodingNepal
4 жыл бұрын
Thanks my friend 💙
I got error while doing exactly at 2.12 minutes how many times iam doing this it is not getting about services and feedback not getting horizontal
@CodingNepal
4 жыл бұрын
Check code from description.
@dilipkumar-ck1nc
4 жыл бұрын
@@CodingNepal can u copy the link here I can't see
@ZikoHendrix
4 жыл бұрын
www.codingnepalweb.com/2020/04/responsive-menu-bar-in-html-css.html
@bolivararguello3773
4 жыл бұрын
Why is ul li not align with logo.? Is just a few px lower on mine.?
A dream tutorial! Just code and classical music...
I'm grateful fot this quick yet helpful video! Gotta deserve a subscribe!
@CodingNepal
3 жыл бұрын
Thank you 😁
Hey Nepal .I could not get access for awesome fonts, so i used = . = really worked until i ran into #check:checked~ul{ left: 0; } and it stop working,Do you maybe know what went wrong ?
@CodingNepal
3 жыл бұрын
You may removed label and input tag... Please send your code on my Instagram.
How to make navbar close after click on 'About' and it will redirect to particular div and it should close if click outside of navbar ...Please help and reply 🙏🏻🙏🏻
@CodingNepal
3 жыл бұрын
You need JavaScript to close the navbar when we clicked outside of the navbar.
@tractorspower189
3 жыл бұрын
@Daniel Tibbotts Thank you
@tractorspower189
3 жыл бұрын
@@allroundersports1953 ?? Hhh
@malaak1h
3 жыл бұрын
@Daniel Tibbotts Nice 🤩👍🏻 to simplify the code: navUl.addEventListener("click", ()=> { check.checked = !check.checked ; });
@nemes.tamas.21
3 жыл бұрын
Or simply add to your HTML "head" section: function closeMenu() { var checkbox = document.getElementById('check'); checkbox.checked = false;} And add to every link in your navbar: onclick="closeMenu()" Example: Home Then, every time when a navbar item is selected, the menu will close.
now i understand, that we need to give changes step by step , understood clearly .
thank you for this tutorials i've learn a lot and also thank you for the source code that you provided i'll be using this to make my own website with uselful ideas about designing of entire webpage. btw new Subcriber here
This 7 min tutorial took me like 30 mins LOL
@CodingNepal
3 жыл бұрын
😁😁😁 Stay tuned.