How to Create Responsive Navigation Bar using HTML and CSS
HTML-код
- Опубликовано: 8 авг 2019
- 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
Responsive Sticky Navigation Menu Bar in HTML & CSS
Watch: ruclips.net/video/UHSeFxZIuv8/видео.html
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
Html5 css3 js website demo please
mero chalena
@@AbhishekKumar-sm7or po
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 WAHAHAHAAHAHAHHA me too im about to cry now :(
Ahahaha
Same here brother
😂😂
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!
Thank you so much for your appreciation.. Stay tuned 💙
Hey man can u please give me a source code here !
i want to thank you too.. we need people thanking people who help people too..
He is talented in creating websites.
Me: i am talented in watching the talents of others
Hahah 😂😂
Same here😆
you made me chuckle for i too am talented at watching the talent of others
@@bridget7223 lol
one voice
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!
Sometimes talk is important cause I didn't know why he did some things here
@@mbahchris1188 once you learn what each thing do then it’s easy to follow along
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.
Thank you sir 👍
Thanks :)
or you can use ul>li*3 and you will have 3 of li nested in ul ;P
Ohh wow this just help me a lot👏🏾👏🏾 THANKS!!
Good input.
Also for Mac you use combination of Option + shift and down arrow.
Who chose the music? Came here for burger bar and left suicidal 😭😭😭😭
😂😂😂ishliye roo rahe hoo
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.
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.
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🚀🚀
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).
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.
Thank you 💙.. Keep watching
You are welcome.❤
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.
You're welcome... Keep watching my videos and best of luck for your work.
Watch my new videos also... You won't be disappointed.
Nice idea of using a checkbox as a indicator for activating the menu bar instead of using javascript 😁. 👍👍👍
I like that you demo in the beginning then again after. Thanks for that.
Thank you...Keep watching our other videos :)
Thanks, been battling to find just this!!
Thank you.. Keep watching nd supporting ❤️
Thank u. Em cheppagalam inthakannaa. Really u decreased my stress levels to down about nav bars.
we need to use ->(area-hidden="true") inside tag, to get hamburger.
I really like this video! I have been browsing RUclips for a while now to find a video like this. Love from India. :)
Keep watching and supporting :)
i love how you can see what every line does :)
more channels sound record this way
Thank you 💙... Keep watching
Big thanks for this. Great help for me for starting learning html and css ❤️
Glad it was helpful :)
hands down the best tutorial about responsive navbar I have found, thank you
This is the only one that worked for me. Now im on another level with is, thanks a lot pal
You're welcome. Please visit our channel for related more contents.
Brilliant task you have done, may be I would never forget you. Keep sharing your skills & patience with us. May almighty grant you...
Many many thanks
Can't Go back without liking.......👍👍
(background music was so Awesome & relaxing )
Thank you
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.
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
Thank you so much for suggestions...I really appreciate your suggestion :)
@@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.
sir can u tell me how that collapsing happing on click i cant get it.
@@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
@@safouaneahmedsalah6233 thnku sir i m going try it now.
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!!
Your welcome :)
Muito bom! rapido e facil de entender.
I always struggled understanding css, i get some of it, however your video has helped me finally finish my web project :)
Glad it helped!
the fact that I got a wix ad make me mad
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!!
You're welcome bro 💙
I spent hours trying to find something like this. You saved my life. I loved the video and the music
Thank you and don't forget to visit this channel for more helpful videos.
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!
Great tutorial man, it was so helpful. NIce background music too!
Thank you.. Stay tuned 😁
Great tutorial, man! Greetings from Brazil! Thank you!
Your welcome 💙
Increadibly easy to follow amazing thank you!
You're welcome 💙
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
Happy to help!
Me encantó el diseño, intenté tres veces para que me salga y me salió
THE MOST PRECISE AND AMAZING VIDEO!
TO THE POINT✌
Great job!
Thanks for sharing this video.
And please can you provide a link to the html & css code?
YOU SAVED MY EVENING!!!
Glad to hear that
Great Job
Thank you... keep watching :)
Of all I have seen you have got the shortest videos thank you soo much
Still helpful up till this day. Thanks alot
Great Tutorial! I am having trouble putting the menu in a block postion. The command is around lines 68 - 76 in the css
You can download codes from description link.
hi i have same issue. Did you figure out please? hope you don't mind to share.
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!
You're welcome bro.. Stay tuned 😁
never thought that it could be so dificult, but the music make me want to do it again and again
I'm a visual learner and these type of vids really helps! thank you sm
Thank you so much for this tutorial! It is exactly what I have been looking for. Keep doing videos like this please!
I really appreciate your comment :)
Great tutorial! whats impressive is that even the climax is sync with background music!
see at 6:29
😂
The classical music on the background makes it so peaceful to learn!
I live in England this does really help love to Nepal ♥️
This is great man, I' m new to coding and was wondering how do you get HTML and CSS ?
Keep learning..
Thank you for this! Easy tutorial, no talking, just watch and learn!
Great video!
Very informative. And the silent-era piano melody is beautiful
Glad you liked it!
Thanks man, you really helped me to finish a project. ;)
its amazing..thank you.😊😊
Thank you so much :)
menu HTML, css beautiful
Thank you 💙
for long time we r searching for this...
now i found thanks bro...
You're welcome bro 💙
Awesome trick with the checkbox to avoid using javascript at all. Nicely done!
Thank you 💙
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
Watch this video: ruclips.net/video/ggF5JD-wBeM/видео.html
header{
position :sticky
}
Creative contents 😍
Thank you
This responsive navigation bar which is using HTML, CSS was very simple.Thanks for sharing.
It's just amazing thank you so much man !! 🙏🏼🙏🏼
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 :"
Decrease the padding of the navbar and the logo size inside media property.
@@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
@@nour3660 same problem i have also
@@goran-is6zr You probably need a different link for the fa fa bars
Se atentem a versão do fontawesome
*To the everyone reading this* : Sending Virtual hugs to everyone who needs it, Stay Safe! 😷
What's with the mask
@@indianathe3rd742 c o v i d ?
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.
Pretty Amazing. Loved it how you created it. Just Wow.
Hi! Great tutorial, but I had a problem getting the logo to be big it is still small. How do I Fix this?
Contact me on insta - instagram.com/coding.np
you need to add a width and height property to that logo
eg:
It is a nice responsive navbar
Thank you.. Stay tuned 😁
Amazing brother ❤ 💙 🙌!!! Please continue with your videos and I promise you that I'll keep like your videosans more importantly I'll keep clicking on the Ads to support your Amazing work 👏👏
Really thank you!!!
Thank you so much.. I really appreciate it... Stay tuned 😁
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.
Hey, great tutorial!
I have a problem ... When I click the "burguer menu" button, the menu does not appear :((
Contact me on Instagram... Maybe you missed something on codes.
Same thing here , i didn't miss any line of code , still having issues with the menu button ..do you think the fault is coming from the Editor ?
Check your codes with this tutorial codes - www.codingnepalweb.com/2020/04/responsive-menu-bar-in-html-css.html
@@CodingNepal bro the site is under maintainence and I have also the same issue and i wrote the exact same code of yours. Please help
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 🙏🏻🙏🏻
You need JavaScript to close the navbar when we clicked outside of the navbar.
@Daniel Tibbotts
Thank you
@@allroundersports1953 ?? Hhh
@Daniel Tibbotts Nice 🤩👍🏻
to simplify the code:
navUl.addEventListener("click", ()=> {
check.checked = !check.checked ;
});
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.
i like that you demo in the beginning then again after. Thanks for that.......
Glad you liked it!
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
Haha 😂... Keep watching bro
Great Sir
Thank you...keep supporting ❤️
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 ?
You may removed label and input tag... Please send your code on my Instagram.
It was way easier to create a responsive navbar using a checkbox as an indicator to activate the menu bar instead of using JavaScript. Thank you for making this amazing tutorial. 😁
Hey bro I can't seem to make the toggle button. Can You help me with that.
@@talha3213 Yes of course, what exactly is the problem that you are facing?
@@FunnyStep_BK Thanks for replying bro, I searched the problem on chatgpt and it suggested that I should import the font-awesome url in my CSS, so I think it solved the issue.
@@talha3213 Nice 👍
This is very useful and effective tutorial I have ever watched. Thank you so much for this.
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
Check code from description.
@@CodingNepal can u copy the link here I can't see
www.codingnepalweb.com/2020/04/responsive-menu-bar-in-html-css.html
Why is ul li not align with logo.? Is just a few px lower on mine.?
I searched nav bar but emotional
Thank you for posting this. This was very helpful!
worked excellent thanks for this amazing tutorial!
Thank you 💙
subscribed my friend!
Thanks my friend 💙
me: doing the same and end with a list without any colour or in the right order... thinking about quitting with life Xd
hahahahahahaha
Thanks for creating such a master piece! :)
So easy to understand. Love everything about it. Keep it up ☺️
I cant stay alive without giving you a salute
Glad to hear that 😁
This 7 min tutorial took me like 30 mins LOL
😁😁😁 Stay tuned.
Wow, Amazing video tutorial!
The Navbar is so beautiful 😄👍
Thank you so much!
You're welcome.. Stay tuned 😁
on point and easy to follow keep it up! congratulations!
Thank you 💙
IDK why ... but the 3 lines are not showing in the website
even when i try the source code
EDIT: NVM is fixed it
Make sure you're connected with the Internet and linked icons with current fontawesome updated link.
3.54 After typing the"fas fa-bars" why I still can't get the bar besides the checkbox when I run with the browser 😥
Make sure you've linked fontawesome in your html file and you're connected with the Internet.
@@CodingNepal I solve the problem, thank you so much! 🥰
@Mathias GEGOUT try to download the codes from the link, the css have an @import rule for the bar
@CodingNepal I've linked it, add the import but it still don't work... what could it be?
@@gabrielguerreiromusic did you solve it?
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.
How beautifully define 🥰 everythings goes setup in my mind lovely ❤
hello why does the is not working on me no background picture is shown
i wanna insert some text too how will i insert some text it's gonna be like curriculum vitae
You have to set proper path of your image like I've set in the background property in css.
@@CodingNepal please I don’t still understand. I did everything you did. But still can’t add the pics. Please help. Thanks a lot.
0:42 where are you typing your codes? what software is it? please i really need your help
Software name atom.io
@@CodingNepal thanks ❤️
@@iaminsideyourhouse_sd atom io with an html preview plugin
atom
awesome and simple, thank you!
Thanks for this video man, I couldn't understand how it worked and your video helped me a lot =)
Glad it helped!