How To Create a Responsive Navbar Using HTML & CSS | Step By Step Tutorial
HTML-код
- Опубликовано: 20 май 2024
- #navbar #responsivenavbar #css
In this tutorial, we will be building a responsive navbar using HTML and CSS(navigation bar in html and css). This navbar will adjust to different screen sizes, making it perfect for any website. We will be using media queries to make the navbar responsive. You will learn how to create a toggle button that opens and closes the menu, as well as how to style the menu items. This is a great project for beginners looking to improve their HTML and CSS skills. So, let's get started!
--------------------------------------------------------------------------------
NEW Responsive Navbar NO JS! - • How To Create a Respon...
--------------------------------------------------------------------------------
0:00 Intro
0:40 HTML
2:33 CSS
7:15 CSS Responsive Design
8:04 HTML Dropdown Menu
8:28 Styling Dropdown Menu
10:51 JavaScript
12:38 Dropdown Menu CSS Media Queries
13:16 HTML Hero Section
13:30 Styling Hero Section
-----------------------------------------------------------------------------
Subscribe:
-----------------------------------------------------------------------------
Source Code: / webdevcreative
GitHub Initial Code: github.com/webdevcreative/res...
--------------------------------------------------------------------------------
Love my videos? Support me by buying me a coffee. Thank you! : www.buymeacoffee.com/webdevcr...
--------------------------------------------------------------------------------
- How To Make Responsive Navbar with Bootstrap 5: • How To Make Responsive...
- Responsive Fast Food Web Design Using HTML and CSS: • Responsive Fast Food W...
- Build Illustration Style Website With Responsive Design: • Build Illustration Sty...
- Neumorphism Music Player UI and Basic Functionality: • Neumorphism Music Play...
- Build a Modern Website with Tailwind CSS and HTML: • Build a Modern Website...
- Create Beautiful Toast Notifications with ReactJs: • Create Beautiful Toast...
- Create Modern Animated Search Bars Using HTML and CSS: • Create Modern Animated...
- Ecommerce Side Cart | Part 1/2 - Design using HTML, CSS & JavaScript: • Ecommerce Side Cart | ...
- Ecommerce Side Cart | Part 2/2 - Functionality using HTML, CSS & JavaScript: • Ecommerce Side Cart | ...
- Animated Menu Button Using HTML & CSS: • Animated Menu Button U...
- How To Build a React Animated Modal 2023 (Vite, CSS-Modules, Hooks): • How To Build a React A...
- How To Make Awesome Input Animation using HTML & CSS: • How To Make Awesome In...
- How to Create a Modern Login Form with Responsive Design using HTML and CSS: • How to Create a Modern...
- Simple Image Slider using HTML, CSS, and JavaScript: • Simple Image Slider us...
-----------------------------------------------------------------------------
Background Image: images.unsplash.com/photo-148...
-----------------------------------------------------------------------------
Font Awesome Cdn: cdnjs.com/libraries/font-awesome
Font Awesome Icons: fontawesome.com/icons
-----------------------------------------------------------------------------
Instagram: / webdevcreative_youtube
All source code: patreon.com/webdevcreative
merci
I’ve worked on mine and it’s working
If you need the code I can share with you.
Just reply. Thank you 👍
@@Blacknarrates please share
@@Blacknarrates thank you
@webdevcreative the link is not opening
Great video. Had no voice over but still explained everything flawlessly
I've been struggling with creative a functional navbar, thanks alot for this video 😭🙏
the best video I have ever seen for the responsiveness of the website. in fact this the video which gave me the complete understanding of the responsiveness . thank you so much great work do More
The layout looks great but all of the shortcuts I learned from this astound me! Instant Sub!
Hey! Awesome work and thank you very much! I adjusted dropdown menu to suit my project and your tutorial helped a ton. I am having a bit of trouble with toggling an xmark, any other icon for that matter. Xmark apparently isn't included in font awesome 5 free so I tried with other icons but nothing works! Still have the good ol bars so not really an issue.
Such a simple design to follow along with, thanks a bunch!
Fabulous tutorial bro❤️❤️
I love it very much ❣️
pocos minutos hiciste eso. eres un crack. nuevo suscriptor
It was a nice and clean video. Even without a voiceover, you made us understand everything. Thank you for creating this clean and great video.
This is amazing, although I would like to make a suggestion, do you think it’s possible you input speech as you code? Just for more clarity and gives you the time to explain certain things, big love and a nice one. 👏🏽
I appreciate the tutorial (even if it's not voiced over)
I incorporated it into my little React project
ooh, it's so cute to see clean html after working with React and Next.js for a long time.. it's like playing on an old 8bit Dendy🥰😍😍😍 there are no functions, states and props here - i love it!
Best! I use your videos for learning. Perfect, I understand everything without your explanation/speaking. I learn a lot, thanks to you 😊😊😊😊
Thank you so much for this detailed complete video. You explained everything about mobile dropdown responsiveness here. Thanks alot. God bless you.
brilliant videos...Thank you so much❤ Subscribed!
Great tutorial, thanks!
This is a great saver...Thank you soo much.
Bravo nice job
Good job. Nice design
If you guys are having trouble with the toggle not showing, try minimizing your window. If you see the three lines after doing that then congrats you followed well! Now to fix this issue, the solution I found was to adjust the max width from the line that has @media from 992 to a higher number, btw mine worked at 2000px.
Mine Worked When I Removed The 'Overflow:Hidden' Attribute
@@johnexplorations272 mine also work but when I reload it automatically open
I followed right and put the right syntax but My media query does not working what would I do
@@marieswaranr2510 In your code, add this script:
window.addEventListener("DOMContentLoaded",function(){
alert("Window width:" + window.innerWidth");
alert("Window height:" + window.innerHeight);
}
also, try adding this meta:
your code wont work if the meta tag is not added, so take care of that.
Edit: This occured to me too when i was learning programming, and happens usually with a lot of programmers. Just make sure you check the syntax again
It worked. ty
Marvelous
Good stuff, thanks a bunch!
Thank you for creating this great video. ❣
Wow such a beautiful and simple follow along tutorial. Keep on bringing quality content, you have our support 💝
Btw which background music did u use in this video??
This was great! Thank you!
great Video bro carryon and teach us more ❤❤
Thank you, your video helped me so much to finish my work. I'm so grateful.
awesome! 😁😁
Thank you. It was so simple to understand.
Thank you for the excellent video! By the way I have a question. Is there any specific reason of using , instead of tag? I presumed that would fit semantics better than . I am a beginner , so any informative comments would be highly appreciated! Thank you sir!
There is no reason for the should have a class of 'navbar'. you can also use tag with a class of "navbar". btw using a tag itself for designing can be overwritten by its priority order. since class have higher priority than tagname
Thz bro this is so easy n very nice ilysm
i love the design
The Background Music Is So Immersive
Thank you for sharing this video.
thanks mine worked perfect
very helpful thanks
Thank you so much your video helped me a lot :)
Thank you very much !!
Thank you so much🙏
Thanks❤
good one
thank u ❤
Thanks man!
So satisfaction 😊
well done man!
Hey! Great video as always 😁 I was just wondering, what web browser do you use?
wowwwwww great
Great video
شكرا Thanks it was helpful
Awesome video it really helped me 🚀👌
Thank you so much
Thanks so much
Thank you.
Thank you brother
thank you!!
Thanks!
I have a question, is it necessary to add a bg-color if bg-image covers the whole screen? Why did he did like that?
Great Video
this tutorial is really helpful 😍Thanks🌼
You're welcome!
Tranks bro
awesome 🥰
thanks bro
thank you
awesome
intenté hacerlo para una página mía pero no quedó igual
Muito TOP \o/
Mano. Vê se consegue me ajudar. Eu fiz todo esse tutorial, mas quando deixo o dropdown_menu ativado com 992px e aumento pra 993, o botão Get Started aparece mas o dropdown não some. Ai fico com o botão Get Started na tela e o dropdown ativado também. Sabe onde estou errando?
Hello Web Dev Creative,
is it possible to have logo on center and links on left and the button on right side in the navbar if this does possible recommend some videos or just me here because I am struck to learn my how to make responsive navbar sorry bothering you. please let me know.
very helpfull
Glad to hear that
Realy bro its helpfully in my project i just include this instruction thanks❤️
Actually it's beautiful because it has a pretty picture
Good❤
Thanku ❤
tnx
Thanks
cool video)
Nice work bro
This bar looking amazing and works fine. But when i minimalize the Site, the Tabs "Hero, About.." are always shown. I allready search the miss, but i dont found it.. can anyone help me please?
Bro, what is your theme extension?
❤
What music is this? i loved it..
ive wrote the exact same thing as you but when i copy the bar in to the code it doesnt show up? youre relly great and i would love for this to work!
same thing happened to me, did u find a fix?
I changed few things of font-awesome and it works fine for me ,
I used this rel link : cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
then for bars use class = "fa fa-bars" ,
for cross/xmark use class = "fa fa-times" .
I hope this will help you☺
Can someone share the final index.html and style.css I've trouble with the toggle button, for some reason is not working to me, I want to check where I messed up.
NEW Responsive Navbar NO JS! - ruclips.net/video/JEulHItO3UI/видео.html
please teach hamburger responsive menu using js
My bars are not showing, I've reduced the size of the screen, increased max width still not showing help!!
I really..... liked background music can anyone tell me which one is it
Help me develop by subscribing so that I can be more enthusiastic about creating programming content
where you learnt html css js ?
When I'm adding about us section after all this code so why my about us pic and text go up
I was like "no way he's gonna make a responsive hamburger menu without js" (cus you say html and css in the title) but then entered js xD
how much will this cost if you build the same page
Why create a div classed as navbar when you cab use navbar tag? Can you please explain?
a class has precedence over a tagname
I m sleeping 😌😴 because of good 🎵 in background 😃 LMAO 😂
cann i add my self the js code?
how close navbar if widow click?
Hey my dropdown menu is not opening when clicking the toggle button. Can anyone help me out.
instead using .onClick in script function, try this function:
toggleBtn.addEventListener('click', () => {
dropDownMenu.classList.toggle('open');
}
mine too, did you get it?
If you followed his tutorial completely, at the java script part, it wouldnt work for me but when I changed the .toggle_button in the script to the mentioned .toggle-button in both cases, it fixed it.
@@marcellszucs2225 yis
@@nobaku.3 this saves me! thank you so much!
How you resize the background image? how it is responsive?
Thanks for your comment and for your interest in my video! To make the background image responsive, I used CSS to set the background position to center and the background size to cover. This allows the image to scale up or down depending on the size of the screen while keeping it centered. I hope that helps! Let me know if you have any other questions.
this is great work although my drop down is not working even after using your code from git hub..kindly assist
Hi, did you find the solution?
JS not working in Firefox based on screen code shown here.
When I reduce the screen my bars disapear, I dont know why
cdnjs cannot access