Responsive Nav Bar Tutorial | HTML CSS JS Flexbox Navigation Menu

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ค. 2024
  • Learn how to build a nav bar that is fully responsive tutorial with CSS Flexbox. We'll be using some Javascript alongside our HTML & CSS to create the navigation bar menu.
    We'll add a bit of animation for transitions as well as media queries and pseudo elements for the mobile menu! Original tutorial inspiration from: / azaleamollis
    PLEASE SUBSCRIBE!:
    th-cam.com/users/FollowAndrew...
    Watch: Responsive Pure CSS Menu Tutorial (No JS):
    • Responsive Pure CSS Me...
    Download project files:
    github.com/wilsmex/edu/tree/m...
    Web Hosting Needs (school code:FollowAndrew for 20% off!):
    studentwebhosting.com

ความคิดเห็น • 141

  • @naziruadam3950
    @naziruadam3950 3 ปีที่แล้ว +3

    That "order" rule was very handy! I never used it before! Thanks for the thorough explanation.

  • @Brandon-sr4qp
    @Brandon-sr4qp 4 ปีที่แล้ว +8

    Great tutorial, thanks! This is the navbar I've been wanting to learn, particularly the functional hamburger menu.

  • @rishabkumar5656
    @rishabkumar5656 4 ปีที่แล้ว

    Great Video. This is the first time I have created an responsive navbar and I learnt it the right way. Thanks Mate!!

  • @Gschibby
    @Gschibby ปีที่แล้ว +2

    Great tutorial, and a great teacher! I really appreciate how you explain the thought process behind what you do and why you do it. I'm fairly new to web-development, but I could still easily follow along the video.

  • @OrincyWhyteDesigns
    @OrincyWhyteDesigns 2 ปีที่แล้ว +2

    Damn you’re good 🤯🤯 your css nav tutorial was so good. I built 2 back to back. I didn’t even use floats and clears either, your tutorial was so easy to comprehend that I was able to change it around. Can’t wait to try this JS button !!!

    • @FollowAndrew
      @FollowAndrew  2 ปีที่แล้ว

      Awesome! You'll be there in no time!

  • @wandavazquez3201
    @wandavazquez3201 4 ปีที่แล้ว

    Best tutorial I've followed. Excellent.

  • @bruceclark2277
    @bruceclark2277 2 ปีที่แล้ว

    Thanks for this - I have completed my navbar! Now back to the make your own wordpress theme - hopefully I can incorporate it!

  • @MohdAmirAnsari9699
    @MohdAmirAnsari9699 4 ปีที่แล้ว +1

    That was really very amazing! Quite informative!

  • @mikersson
    @mikersson ปีที่แล้ว

    Super clean and simple result and very well explained!!! Thank you so much!!!!!!!

  • @dotsysdev4775
    @dotsysdev4775 4 ปีที่แล้ว +1

    Very informative , very useful and well explained ! Thank you !
    Have a nice year :)

  • @drewstifler1440
    @drewstifler1440 4 ปีที่แล้ว +13

    Very informative! Man, do a tutorial of making a page using Flexbox and Grid together. People make dramas of Flexbox vs Grid where in fact they can be used together.

  • @jonathanel-aziz2208
    @jonathanel-aziz2208 2 ปีที่แล้ว +2

    Muchas gracias, estoy adentrándome al mundo del flexbox , estoy en un proyecto y ésto era lo que me faltaba hacer.

  • @babygrandadplays
    @babygrandadplays 8 หลายเดือนก่อน

    amazing tutorial, I really appreciate the time you took to give us lessons

  • @cemwstone
    @cemwstone 4 ปีที่แล้ว +1

    Nice sampling Andrew. Thanx

  • @brett3554
    @brett3554 3 ปีที่แล้ว +2

    I learned a ton from this tutorial thank you

  • @penguinab
    @penguinab 3 ปีที่แล้ว

    Thank you for this tutorial! Easy to follow and learn :)

  • @djjonnas
    @djjonnas 3 ปีที่แล้ว

    Thanks, now I've learnt how to make a great nav bar

  • @icarokiilermelo
    @icarokiilermelo ปีที่แล้ว

    Very good man, it help-me a loot to understand some concepts and techniques of responsive layout

  • @ericaruiz6707
    @ericaruiz6707 4 ปีที่แล้ว

    thanks! Medellín- Colombia, great tutorial

  • @Bielito92
    @Bielito92 4 ปีที่แล้ว

    Very Good, im from Brasil and I loved your content!

  • @samsar7
    @samsar7 4 ปีที่แล้ว +1

    Very Good Tutorial.learned many things.thank you!

  • @guillermorodriguez8916
    @guillermorodriguez8916 3 ปีที่แล้ว

    this was really helpful! Thanks for your excellent tutorial!

  • @richardsambo283
    @richardsambo283 2 ปีที่แล้ว

    Thanks Andrew. Great tutorial, that was super helpful. 👍

  • @echuderewicz
    @echuderewicz ปีที่แล้ว

    Thanks. Nice presentation.

  • @maikwolfram
    @maikwolfram ปีที่แล้ว

    Thank u sooooo much …. That was a brilliant tutorial !!!

  • @debasishgracias757
    @debasishgracias757 3 ปีที่แล้ว

    Great tutorial! very helpful.

  • @fatemealhoseini4493
    @fatemealhoseini4493 3 ปีที่แล้ว

    perfect tutorial , Thank u deeeeply!!!

  • @mhhamzaedits
    @mhhamzaedits ปีที่แล้ว

    you are teaching GREATFULL
    love you bro

  • @deviljinx45
    @deviljinx45 2 ปีที่แล้ว

    Thank you very much this help me alot :)

  • @demaiainkediri6724
    @demaiainkediri6724 ปีที่แล้ว

    The best method, I recommend

  • @ndindacodes
    @ndindacodes 2 ปีที่แล้ว

    Thank you so much. I Enjoyed this tutorial and learnt a lot

  • @peixian2901
    @peixian2901 4 ปีที่แล้ว

    Great tutorial! like your video! Thanks!

  • @maya34
    @maya34 4 ปีที่แล้ว

    Great video! Thank you so much. :)

  • @lunatite6451
    @lunatite6451 4 ปีที่แล้ว

    Great tutorial!

  • @DOTRIN
    @DOTRIN 3 ปีที่แล้ว

    Great tutorial, thanks a lot

  • @og_avocado
    @og_avocado 4 ปีที่แล้ว

    You deserve more subs

  • @RajeshKumar-uw9qi
    @RajeshKumar-uw9qi 4 ปีที่แล้ว

    Awesome work...

  • @photoinshot1355
    @photoinshot1355 3 ปีที่แล้ว

    Thanks for a great tutorial, how would you make the selected nav link, so it shows as another colour? There are a lot of tutorials out there about responsive nav bars, but I have not seen one that shows how to show an active link, so the visitor knows which page they are on.

  • @kenthefley2226
    @kenthefley2226 3 ปีที่แล้ว

    On which element would you add the transition if you wanted to the menu toggle effect to be smoother?

  •  4 ปีที่แล้ว

    thank you man. love you

  • @user-yd3jz6nu5l
    @user-yd3jz6nu5l 6 หลายเดือนก่อน

    really easy tutorial to follow, thank you! I do have a question - how would i be able to put the logo in the center?

  • @georgesaunders3532
    @georgesaunders3532 4 ปีที่แล้ว

    Is the best way to align the hamburger menu icon better to set the top to -5 and -10 respectively on the before and after pseudo elements or is there a betrer way?

  • @Shesfantaa
    @Shesfantaa 10 หลายเดือนก่อน

    i love youuu, thankkk youuu saveeeeddd meee

  • @sleepingdogpic5850
    @sleepingdogpic5850 ปีที่แล้ว

    hello, thank you very much for this tutorial -- is there any way to add submenu dropdowns?

  • @rssimran4800
    @rssimran4800 4 ปีที่แล้ว

    Awesome tutorial....

  • @prakash1to7
    @prakash1to7 4 ปีที่แล้ว

    Nice explanatory Video Andrew. please post similar videos.

  • @next_luke
    @next_luke 4 ปีที่แล้ว

    Hi, how i can display my menu items on the left, next to the logo?

  • @salemshehabeddin7638
    @salemshehabeddin7638 3 ปีที่แล้ว

    Hello Andrew, thank you for always uploading informative video. I have a problem in this exercise. order property is not working, and when I apply the width 100% to menu items nothing changes.

  • @nicdemus-rc7gc
    @nicdemus-rc7gc 4 ปีที่แล้ว

    Really nice tutorial buddy, thanks, I ditto the comment making the nav with flex and grid but eh we have to do some work ourselves! I am on that now but like the guy below that would be cool! Have a great day ;D

  • @jasonstack397
    @jasonstack397 3 ปีที่แล้ว

    loved the video. Really helpful tutorial. Does anyone know how i could animations so when the hamburger menu is clicked it has a transition effect. Would this be done using JavaScript or css and how should i go about implementing it?

  • @morphetowusu1785
    @morphetowusu1785 3 ปีที่แล้ว

    Andrew this is tutorials great !! but I would be pleased if you go further on flexbox.. it' s very tricky.

  • @sudipta238
    @sudipta238 3 ปีที่แล้ว

    Thank You Verry Much Sir.❤

  • @kaderlakhdar5735
    @kaderlakhdar5735 4 ปีที่แล้ว

    Thank you Soo much !

  • @yassinabdulla368
    @yassinabdulla368 2 ปีที่แล้ว

    thanks for this video l learn too from it

  • @MrMarcoAlvarado
    @MrMarcoAlvarado 4 ปีที่แล้ว +1

    Hi Andrew, amazing video, easily comprehensible! One questions: Why do you use position:absolute for the pseudo-elements and not position:relative (toggel button)? Thanks!

    • @shivaniraj7738
      @shivaniraj7738 3 ปีที่แล้ว +1

      so the toglle button will be responsive and wont move from iits position

  • @etse_tma
    @etse_tma 3 ปีที่แล้ว

    thanks man

  • @gsshaykot3824
    @gsshaykot3824 3 ปีที่แล้ว

    very informative with practical,please make the menu animated in mobile view....something like when we will click the hamburger icon than the items will appears from top to bottom with some transitio.

  • @miriamjurkova3623
    @miriamjurkova3623 4 ปีที่แล้ว +2

    Great video! but u have there some mistakes instead of items u have to write item in order to work properly...
    .item.active {
    display: block;
    }

  • @johnlloydmoreno9517
    @johnlloydmoreno9517 3 ปีที่แล้ว

    THANK YOU YOU JUST HELP OUY FOR MY FINAL PROJECT

    • @FollowAndrew
      @FollowAndrew  2 ปีที่แล้ว

      Do I get like bonus points or something?

  • @RanjeetkumarYadav
    @RanjeetkumarYadav 3 ปีที่แล้ว

    Content is getting pushed down when the menu is active(showing). How do we solve that ?

  • @alessandramedeiros8225
    @alessandramedeiros8225 ปีที่แล้ว

    Thanks so much!

  • @doni654321
    @doni654321 ปีที่แล้ว

    I need help with mine, I done nav bars before but I am having trouble on this one. its with mega menu

  • @imranmughal2215
    @imranmughal2215 4 ปีที่แล้ว

    sir i have a question i am trying to create a responsive navbar in flex using only css. But that is not working on mobile view i mean when i click the toggle it is not appearing can you please tell me what is the problem?

  • @justinroydmaquiran3344
    @justinroydmaquiran3344 ปีที่แล้ว

    What extension do you use in your live preview?

  • @amazongirlsfitness4370
    @amazongirlsfitness4370 4 ปีที่แล้ว +1

    A comment,
    at the logo class style, add
    {width: fit-content;}
    to adjust the logo to own content, garantee not accidentally clicking logo on empty space at nav bar.
    Thanks #FollowAndrew Very good tutorial

  • @anuwatavara1423
    @anuwatavara1423 4 ปีที่แล้ว

    Thank you so much

  • @programmingempire9306
    @programmingempire9306 2 ปีที่แล้ว

    Please! I need your help with this step. How to move the Sign Up button lite further more to the side and keep the Login button withe menu?? Every time try to do that, the Login button is moving as well which's not what want.

  • @JackieBuckleyphilly5
    @JackieBuckleyphilly5 4 ปีที่แล้ว

    Thanks for the tutorial, the best. I just has one problem. I am using brackets and in javascript they consider const an error. This is how it is worded ERROR Pausing error The keyword const is reserved.

  • @bukqueiroz
    @bukqueiroz 3 ปีที่แล้ว

    thanks bro

  • @2002budokan
    @2002budokan 4 ปีที่แล้ว

    Follow Andrew, you'll never regret! 👍

  • @joshuanithasvillanueva9143
    @joshuanithasvillanueva9143 ปีที่แล้ว

    How would we add a transition to this nav bar? thank you so much for the video! I'm making a website for my wedding :) helps out a lot!

  • @ktron4144
    @ktron4144 4 ปีที่แล้ว

    Great tutorial. Would you normally include the logo in the unordered list or should it be in an anchor and img tag?

    • @FollowAndrew
      @FollowAndrew  4 ปีที่แล้ว

      Thanks! Typically probably the anchor and img tag as you mentioned.

  • @rbengrid23
    @rbengrid23 4 ปีที่แล้ว

    Bonjour, Très bon cours Merci

  • @SonnyBurnett2012
    @SonnyBurnett2012 3 ปีที่แล้ว

    Thank you!

  • @ImproveProgrammingLogic
    @ImproveProgrammingLogic 3 ปีที่แล้ว

    Nice

  • @muhammadmahdi8938
    @muhammadmahdi8938 3 ปีที่แล้ว +1

    thank you .. :D

  • @jlm97jlm
    @jlm97jlm 4 ปีที่แล้ว

    How would you go about making home about and services centered in the desktop view?

    • @FollowAndrew
      @FollowAndrew  4 ปีที่แล้ว +1

      You could wrap those in an additional wrapper and then that single div could be centered via Flexbox with the logo and login areas...

  • @mhhamzaedits
    @mhhamzaedits ปีที่แล้ว

    bro Your language i am not uderstandig but your work is i understandig.
    beacuese i am INDIAN 🇮🇳. Good work bro.
    Thank You for you tech us.
    I speak little inglish.

  • @md.obidullah6415
    @md.obidullah6415 4 ปีที่แล้ว

    great.!!!

  • @andrewsinelnikov2307
    @andrewsinelnikov2307 4 ปีที่แล้ว

    Thank you

  • @girlingame518
    @girlingame518 4 ปีที่แล้ว

    so neat

  • @cybersamurai99
    @cybersamurai99 ปีที่แล้ว

    just the li*7>a is worth the subscription, amazing thank you for sharing!

  • @brianjett1446
    @brianjett1446 2 ปีที่แล้ว

    I have a question how would I create this in php? it works great in HTML yet I have an ideal that might work. I'm just asking for now I don't wanna screw anything up while I'm coding.

  • @mihirsarvaiya9389
    @mihirsarvaiya9389 2 ปีที่แล้ว

    Javascript is not working on webpage can't output javascript code in web page tell me what I do?

  • @bandhdhdh7188
    @bandhdhdh7188 2 ปีที่แล้ว

    How to animate a menu like this?

  • @mateuszsawczuk7252
    @mateuszsawczuk7252 4 ปีที่แล้ว

    How did you make website automatic refresh? Is it some kind of IIS or Node feature?

    • @FollowAndrew
      @FollowAndrew  4 ปีที่แล้ว

      Live Server plugin in VS Code

  • @MiguelKali6g
    @MiguelKali6g 4 ปีที่แล้ว +1

    Saludos desde Perú 😃 🇵🇪

  • @doni654321
    @doni654321 ปีที่แล้ว

    didn't work here, because I am already working with a massive nav bar megamenu, any help would be appreciated

  • @justsomeguy2759
    @justsomeguy2759 4 ปีที่แล้ว

    Do this navbar actually work on a mobile device? I've followed so many videos that use body {overlflow-x: hidden} to hide the menu which doesn't work on mobile devices.

    • @ogwurupatrick5641
      @ogwurupatrick5641 3 ปีที่แล้ว

      Add it within your body style, like:
      html,body{
      overflow-x: hidden;
      }
      It does well to prevent horizontal scroll on mobile screen sizes.

  • @eduardoaugusto2443
    @eduardoaugusto2443 2 ปีที่แล้ว

    Fixed top nav bar with dropdown and responsive, please :3

  • @ChallengeMeBROO
    @ChallengeMeBROO 3 ปีที่แล้ว

    My hamburger menu isn''t working. I have no idea why, I copied your code exactly. My items have getting the active class when I click on them but nothing appears. Also when I remove display: none from the items in the css, it still doesn't appear, which makes absolutely no sense. I rewatched the video twice, and my css code is the same. Any ideas what is wrong with my code?

  • @akhmadbarir9544
    @akhmadbarir9544 4 ปีที่แล้ว

    Thanks...

  • @wembleyyy
    @wembleyyy 4 ปีที่แล้ว

    hello, i went with the code until .bars styling. I have no line. The wird thing is if i add border i see vertical line

    • @wembleyyy
      @wembleyyy 4 ปีที่แล้ว

      problem solved: i changed from background to background-color. But that doesnt respond why i have had vertical line when i added border

    • @FollowAndrew
      @FollowAndrew  4 ปีที่แล้ว

      @@wembleyyy Not entirely sure? I'd have to see a live codepen to better understand what you're seeing.

  • @zw3015
    @zw3015 ปีที่แล้ว

    how can i do it with no jquery pls help

  • @theye.shutter
    @theye.shutter 4 ปีที่แล้ว

    what application do you use ?
    Like sublime?

  • @chandarayi5673
    @chandarayi5673 4 ปีที่แล้ว +3

    Who knows how to activate that browser preview? cos I cant do that on VSC

    • @chandarayi5673
      @chandarayi5673 4 ปีที่แล้ว

      cPwtQfzCZXMAcHjexz yeah I did install it but when I click Open previews it doesn’t link to my html and css webpage

    • @chandarayi5673
      @chandarayi5673 4 ปีที่แล้ว

      cPwtQfzCZXMAcHjexz it was blank

  • @bitcoinblockchain431
    @bitcoinblockchain431 4 ปีที่แล้ว +1

    where is the wistle ?

  • @sujuevigirls2071
    @sujuevigirls2071 ปีที่แล้ว

    thank you very much for posting crack without viruses

  • @adrianiosif6657
    @adrianiosif6657 3 ปีที่แล้ว

    hi. i did everything, but when i press the 3 bars menu....doesn't open anything. would you know what could be the problem. ? I went step by step...hmm..

    • @adrianiosif6657
      @adrianiosif6657 3 ปีที่แล้ว

      by the way...thanks for the video..great video

  • @muhsinmusa1170
    @muhsinmusa1170 3 ปีที่แล้ว

    Hi this a great navber i like it really
    please can i get the code ?
    am a student am still learning JS
    if i will be able to get the code it will be helpful to me
    thank you