Responsive Nav Bar Tutorial | HTML CSS JS Flexbox Navigation Menu

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 142

  • @naziruadam3950
    @naziruadam3950 4 года назад +3

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

  • @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!!

  • @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!

  • @Brandon-sr4qp
    @Brandon-sr4qp 4 года назад +8

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

  • @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!

  • @babygrandadplays
    @babygrandadplays Год назад

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

  • @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.

  • @brett3554
    @brett3554 3 года назад +2

    I learned a ton from this tutorial thank you

  • @mikersson
    @mikersson Год назад

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

  • @djjonnas
    @djjonnas 4 года назад

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

  • @wandavazquez3201
    @wandavazquez3201 4 года назад

    Best tutorial I've followed. Excellent.

  • @drewstifler1440
    @drewstifler1440 5 лет назад +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.

  • @icarokiilermelo
    @icarokiilermelo Год назад

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

  • @richardsambo283
    @richardsambo283 3 года назад

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

  • @JenniferHernandez-c2l
    @JenniferHernandez-c2l 11 месяцев назад

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

  • @cemwstone
    @cemwstone 5 лет назад +1

    Nice sampling Andrew. Thanx

  • @MohdAmirAnsari9699
    @MohdAmirAnsari9699 4 года назад +1

    That was really very amazing! Quite informative!

  • @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.

  • @maikwolfram
    @maikwolfram 2 года назад

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

  • @echuderewicz
    @echuderewicz Год назад

    Thanks. Nice presentation.

  • @guillermorodriguez8916
    @guillermorodriguez8916 4 года назад

    this was really helpful! Thanks for your excellent tutorial!

  • @ndindacodes
    @ndindacodes 3 года назад

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

  • @ericaruiz6707
    @ericaruiz6707 4 года назад

    thanks! Medellín- Colombia, great tutorial

  • @samsar7
    @samsar7 5 лет назад +1

    Very Good Tutorial.learned many things.thank you!

  • @demaiainkediri6724
    @demaiainkediri6724 2 года назад

    The best method, I recommend

  • @prakash1to7
    @prakash1to7 4 года назад

    Nice explanatory Video Andrew. please post similar videos.

  • @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.

  • @prasanthvaindam7113
    @prasanthvaindam7113 5 месяцев назад

    Thank you sir, for your patience , it is a very good tutorial, may i know is their any special reason to use jQuery?

  • @debasishgracias757
    @debasishgracias757 3 года назад

    Great tutorial! very helpful.

  • @penguinab
    @penguinab 3 года назад

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

  • @doni654321
    @doni654321 Год назад

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

  • @dotsysdev4775
    @dotsysdev4775 4 года назад +1

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

  • @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.

  • @mhhamzaedits
    @mhhamzaedits Год назад

    you are teaching GREATFULL
    love you bro

  • @Bielito92
    @Bielito92 4 года назад

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

  • @sleepingdogpic5850
    @sleepingdogpic5850 2 года назад

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

  • @gsshaykot3824
    @gsshaykot3824 4 года назад

    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;
    }

  • @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

  • @morphetowusu1785
    @morphetowusu1785 3 года назад

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

  • @deviljinx45
    @deviljinx45 2 года назад

    Thank you very much this help me alot :)

  • @og_avocado
    @og_avocado 5 лет назад

    You deserve more subs

  • @fatemealhoseini4493
    @fatemealhoseini4493 4 года назад

    perfect tutorial , Thank u deeeeply!!!

  • @joshuanithasvillanueva9143
    @joshuanithasvillanueva9143 2 года назад

    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!

  • @DOTRIN
    @DOTRIN 4 года назад

    Great tutorial, thanks a lot

  • @Shesfantaa
    @Shesfantaa Год назад

    i love youuu, thankkk youuu saveeeeddd meee

  • @mihirsarvaiya9389
    @mihirsarvaiya9389 3 года назад

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

  • @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.

  • @peixian2901
    @peixian2901 4 года назад

    Great tutorial! like your video! Thanks!

  • @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?

  • @RajeshKumar-uw9qi
    @RajeshKumar-uw9qi 5 лет назад

    Awesome work...

  • @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?

  • @ChallengeMeBROO
    @ChallengeMeBROO 4 года назад

    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?

  • @justinroydmaquiran3344
    @justinroydmaquiran3344 2 года назад

    What extension do you use in your live preview?

  • @doni654321
    @doni654321 Год назад

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

  • @SudiptaRoyGaming
    @SudiptaRoyGaming 3 года назад

    Thank You Verry Much Sir.❤

  • @MiguelKali6g
    @MiguelKali6g 5 лет назад +1

    Saludos desde Perú 😃 🇵🇪

  • @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?

  • @lunatite6451
    @lunatite6451 5 лет назад

    Great tutorial!

  • @maya34
    @maya34 4 года назад

    Great video! Thank you so much. :)

  • @eduardoaugusto2443
    @eduardoaugusto2443 3 года назад

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

  • @johnlloydmoreno9517
    @johnlloydmoreno9517 3 года назад

    THANK YOU YOU JUST HELP OUY FOR MY FINAL PROJECT

    • @FollowAndrew
      @FollowAndrew  3 года назад

      Do I get like bonus points or something?

  • @kenthefley2226
    @kenthefley2226 4 года назад

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

  • @RanjeetkumarYadav
    @RanjeetkumarYadav 4 года назад

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

  • @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.

  • @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.

  • @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.

  • @bitcoinblockchain431
    @bitcoinblockchain431 4 года назад +1

    where is the wistle ?

  • @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

  • @rssimran4800
    @rssimran4800 5 лет назад

    Awesome tutorial....

  • @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...

  • @next_luke
    @next_luke 5 лет назад

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

  •  5 лет назад

    thank you man. love you

  • @zw3015
    @zw3015 Год назад

    how can i do it with no jquery pls help

  • @FollowAndrew
    @FollowAndrew  5 лет назад

    Version w/o JS: ruclips.net/video/sjrp1FEHnyA/видео.html

  • @bandhdhdh7188
    @bandhdhdh7188 2 года назад

    How to animate a menu like this?

  • @yassinabdulla368
    @yassinabdulla368 3 года назад

    thanks for this video l learn too from it

  • @adrianiosif6657
    @adrianiosif6657 4 года назад

    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 4 года назад

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

  • @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 4 года назад +1

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

  • @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.

  • @wembleyyy
    @wembleyyy 5 лет назад

    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 5 лет назад

      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  5 лет назад

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

  • @nicdemus-rc7gc
    @nicdemus-rc7gc 5 лет назад

    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

  • @mateuszsawczuk7252
    @mateuszsawczuk7252 4 года назад

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

  • @abderrahmenebenounene6481
    @abderrahmenebenounene6481 2 года назад

    here is a vanilla javascript implementation:
    var toggle = document.querySelector('.toggle')
    var items = document.querySelectorAll('.item')
    toggle.addEventListener('click', () => {
    Array.from(items).forEach((item) => {
    item.classList.toggle('active')
    })
    })

  • @cybersamurai99
    @cybersamurai99 Год назад

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

  • @2002budokan
    @2002budokan 4 года назад

    Follow Andrew, you'll never regret! 👍

  • @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 4 года назад

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

  • @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

  • @kaderlakhdar5735
    @kaderlakhdar5735 4 года назад

    Thank you Soo much !

  • @SonnyBurnett2012
    @SonnyBurnett2012 4 года назад

    Thank you!

  • @rbengrid23
    @rbengrid23 4 года назад

    Bonjour, Très bon cours Merci

  • @etse_tma
    @etse_tma 4 года назад

    thanks man

  • @theye.shutter
    @theye.shutter 5 лет назад

    what application do you use ?
    Like sublime?

  • @mohammadtarekrifai6993
    @mohammadtarekrifai6993 3 года назад

    order is not working

  • @muhammadmahdi8938
    @muhammadmahdi8938 3 года назад +1

    thank you .. :D

  • @iphgfqweio
    @iphgfqweio 5 лет назад

    Hey Andrew, thank you very very much, but the link to github is defunct!

  • @anuwatavara1423
    @anuwatavara1423 5 лет назад

    Thank you so much

  • @bukqueiroz
    @bukqueiroz 3 года назад

    thanks bro

  • @andrewsinelnikov2307
    @andrewsinelnikov2307 4 года назад

    Thank you

  • @girlingame518
    @girlingame518 4 года назад

    so neat