Hi folks! Just added another awesome video tutorial, this one covering html and css responsive menus without any javascript! Another tutorial with Flexbox nav: kzbin.info/www/bejne/bKHMlaadmrF_sKc Thumbs up, like, subscribe and all that good stuff...
@zoltakevangee44455 жыл бұрын
Hey Andrew. hi how u doing? i really hope u oookay!! You have no idea how valuable this video was...Its a big effor from u making this video and I appreciate it i mean it...Tnanks thanks thanks...long life for u my brother...
@frederickadewole74345 жыл бұрын
i genuinely understand this tutorial but when i try to do it on my own following same directions, it didn't work for me but when i copied yours from github it function fine, my issue is with the (:checked) part, i've looked at it carefully and i still don't know what's wrong with it....... i really need your help
@krissloo1434 жыл бұрын
you forgot the hit the bill part :)
@BillyLoweBeauty4 жыл бұрын
add logo?? float logo left,,, menu right??? should logo be part of navigation or set aside??
@davidzwart29404 жыл бұрын
43 minutes just flew by, amazing tutorial, clear and concise. Definitely deserves more subscribers!!
@FollowAndrew4 жыл бұрын
Glad it helped!
@MauriceMtl19652 жыл бұрын
I'm not exactly a newbie but CSS has always been my weak point,so I followed, I paused, I tweaked, I unpaused, I followed some more and I learned so much! You are an excellent teacher, Andrew, and I love getting the context which triggered more than one lightbulb moment in me. Great stuff!
@richardsinkler58986 ай бұрын
You are AWESOME!!! So many videos on this subject, they don't explain things like you do. Some you can't even understand them. This is exactly what I need for a website I am making. I just need to figure out how to make it multi-level, but that shouldn't be too hard. I am now subscribed and will be checking out more of your videos.
@p861674 жыл бұрын
Self learner here. You are awsome, very easy to follow content you make me feel like a pro!
@gatluakkuei31633 жыл бұрын
Mr Andrew you are a great teacher, a learner really need to be treated as a learner, thank for the great explanation in details.
@FollowAndrew3 жыл бұрын
Thanks. It's a bit of a fine line when teaching to 'guide' without giving too much away and help with concepts that (to the teacher) seem obvious!
@ricardovegi70973 жыл бұрын
what's up guy, this video is amazing, I was to trying to make this menu bar, and I couldn't find by youtube, and you are showin be me, how many not is complicate, I learned by watching this one video of yours. congratulations man!
@FollowAndrew3 жыл бұрын
Glad I could help
@DeanForantDesigns3 жыл бұрын
Great video. I Used this to implement my own responsive menu on my site (still under development). One caveat, My web design uses a 3px padding around the body and I wanted the menu to be fixed at the top of the page. The problem with fixed positioning for the header was that when you use fixed positioning, the header width goes past the right padding specification of the body element that I had set. This is because the fixed property breaks the box flow of css. The solution I had found to remedy this was to use position:sticky. Unfortunately this property is not supported in IE (no big surprise there). Its not that big of a deal as Microsoft has all but abandoned their support for IE. in fact they are officially going to stop support for it in 2022 and a lot of big websites have already stopped supporting it.
@davidglabais4919 Жыл бұрын
Wow. This is the best video I've ever watched on youtube for coding basics!! You work at a pace that can be followed by us noobs and the clear and detailed explanations of each of the elements in the code are greatly appreciated! If I could make one request, it would be for tutorial on a slide -out hamburger menu created in VS studio and then implemented into a WordPress website!! Understanding that work process would be extremely valuable! Thank you so much for the great channel, new sub here.
@ashleyrossgoingmerrily4 жыл бұрын
Thank you!!!! 7th time trying to set up my nav bar with just HTML and CSS. Finally one that works!
@FollowAndrew4 жыл бұрын
You're welcome!
@prsh19894 жыл бұрын
Amazing tutorial Sir. I searched for responsive navbar tutorial and all the ones I found were either with javascript or extremely hard to understand for a beginner like me. Thanks to god I found this tutorial. Sir, no one, no one in entire youtube has explained this concept of hamburger menu with only css, so beautifully and so clearly step by step in a manner that even a beginner can understand. While following you, I had literally smiled looking at the output and also because now I understand the background functionality of how actually this works because of checkbox. You have mastered the core concepts and helped us master too. You were hand-holding your viewers throughout and explained every logic so beautifully. Oh my god! To have mentors like you is a blessing. I am extremely extremely extremely thankful to you Sir for making such tutorials. Respect to you and god bless you Sir.
@FollowAndrew4 жыл бұрын
Thanks Priyank! I do try and explain the concepts in my videos, rather than just show the code. It takes a bit longer, but I’m glad you were able to follow along and pick up some tips & tricks. Best.
@jakeduhh21224 жыл бұрын
wow! detailed comment. But totally agree!
@bennyo392 жыл бұрын
Fantastic! Learned a lot and now have an amazing website template! Tysm!
@bradahrensforcongress2 жыл бұрын
Finally, got it to work. Thank you so much!
@BobCat9814 жыл бұрын
whenever someone makes any educational video explaining and teaching any skill and publishes it for free - i cant have anything but total respect for that person.
@jacquedreyer54795 жыл бұрын
Fantastic video - I appreciate the way you explained your reasoning for approaching tasks a certain way (i.e. the checkbox and label state etc.). I do have a couple of questions to help me better understand: - Does the CSS selectors need to be written out in full i.e. would .menu-icon not give the same result as .header .menu-icon? - Was there a reason you chose not to use flexbox for the menu? Appreciate the video and the source files - very thoughtful and well done! Thanks
@FollowAndrew5 жыл бұрын
No, the selector could just be .menu-icon. If you had multiple “menu icons” on a single page, then you’d want to nest the selectors in the parents to avoid overrides... No particular reason for not using flexbox.
@pradeepn74 жыл бұрын
Very Well Explained . Thanks.
@barbarakovacs46664 жыл бұрын
Thank you, awesome. Clear explanation, we all really appreciate people like you. I have one question: is this short media query is enough to make a website fully responsive? Like for smaller or bigger phones as well? Thank you in advance!
@FollowAndrew4 жыл бұрын
You'd need to add quite a bit more css into the media query for a fully responsive website, but yes one single 'media query' is enough. Most websites have 2-4 media query breakpoints.
@barbarakovacs46664 жыл бұрын
@@FollowAndrew Thank you! In my projects, I also use like 3-4 media queries, but following your tutorial, it seemed that in simple websites this single query was enough for me
@germantoenglish8982 жыл бұрын
Thank you, a very clear and concise tutorial. Would it also be possible to use flexbox instead of float?
@katalinpeli98492 жыл бұрын
Hi thank you for your video. I have one question. How do you close the menu after clicking on a menu item?
@vince80934 жыл бұрын
hey ı did your navbar it works good but ı need to put a img logo you know but when ı put and resize as a phone it goes out of the navbar what should ı do
@ImranKhan-iz1tt4 жыл бұрын
Nice one. There is only one problem, The transition is not working. Maybe due to browser compatibality. I am using Chrome
@megadevs4 жыл бұрын
15:20 Estou implementando seu código no meu projeto, porém quando chego nessa parte o fundo do header some, mas os links do menu continuam visiveis. Sabe o que possa ser? Um abraço do Brasil
@bolowono2 жыл бұрын
very nice
@juanquintero54584 жыл бұрын
Hi Andrew. I was wondering something. when you use ".header ul" and specify the conditions for that element, is the same thing when we declare ".header .menu"? because you declare them for separate. i was trying to do a hamburguer menu but the ul doesn´t respond to the "max-height" property and I still don´t know why. I hope you keep doing this videos, they are very useful!! regards from argentina
@FollowAndrew4 жыл бұрын
Header .header ul and .header .menu are the same html element, but they do have different specificity. I'm not sure why I did that, it's been too long for me to remember.. :)
@KaiBuskirk Жыл бұрын
cool sp\o far thank you!
@MrNandy-king2 жыл бұрын
op man
@mckibb_n28685 жыл бұрын
Hello Andrew! I was just going through your ScreenCast on Scrimba.com and it seems like you ran into an audio issue with harsh feedback cutting through from -22:00 to -18:00. If you're interested in fixing this issue, I think that people looking up your Screencast would highly appreciate it. Makes me wish that that website had a user ticket system, but I hope this gets to you. Sincerely, Avery Angel
@FollowAndrew5 жыл бұрын
Thanks Avery, I am aware of that issue, but not sure how to resolve it. I think it's because the system tried to do echo cancellation and noise suppression on the audio. I double checked, and there isn't a way (i can tell) to uncheck that after the fact... I've got a message into the support to see what if anything can be done...
@mckibb_n28685 жыл бұрын
@@FollowAndrew Thanks for the response. I'm just happy you had another resource for me to use here. Playing the youtube audio in the background behind the scrimba seemed to do the trick lol.
@vasudev161805 жыл бұрын
Hi Andrew! I am your new subscriber. I really liked your teaching style. It's absolutely crystal clear. I request you to do this kind of work. You really have a great future on youtube as well.
@bryanskiffington18683 жыл бұрын
menu will not go down after typing .header .menu-btn:checked ~ .menu{ max-height:240px; }
@drewstifler14405 жыл бұрын
Explaining and understanding the smallest details is the key in learning. Gotta check your other videos. You got yourself a new subscriber!
@paulkimotho86215 жыл бұрын
Thanks for the tutorial. It's really helpful. I have a question. I want the menu to collapse back up(max-height to get back to zero) once I click on a menu-item. Can we achieve this with CSS?
@dariorieder4 жыл бұрын
Hei Andrew Very nice Navbar. But can you explain how the navbar closes again after we clicked on a link? Thanks
@Erik-or8go4 жыл бұрын
I have the same question, menu not closing after clicking a menu item (in mobile hamburger view)
@stargazer30495 жыл бұрын
Thank you so much for making this video. It was super helpful. You are an excellent teacher and you explain everything so clearly that I can actually understand what the code is doing.
@wikituby11 ай бұрын
the first from zero basics explained ever, i have been looking for this since 2013, thanks you just saved me
@yuriyzadorozhnyi3849 Жыл бұрын
Привіт з України ! Щиро дякую за цікавий контент і можливість вчитися на Вашому каналі ! Дай Бог Вам здоров'я !
@LucianoClassicalGuitar Жыл бұрын
Amazing, is there a way to make the rest of the screen dark while hamburger nav menu shows up? This way the menu stays bright but the rest of the screen goes a bit darker. Thanks!
@danycompservisracunara2717 Жыл бұрын
First of all, you didn't show us the responsible of your header. But, like I can see of that there would be BIG nothing. Dev, you fought with one stupid hamburger line by line, for 43 minutes and twelve seconds. By the way, your video is called "Responsive Pure CSS Menu Tutorial (No Javascript)". Go ahead, bro time is working for you.
@ermacheton3 жыл бұрын
Andrew, When I click on the burger it wont do nothing, I copied your whole CSS file and still don't get any menu to appear... WHAT COULD BE HAPPENING?
@12ty10 ай бұрын
Hey, friend - this isn't actually an example of an accessible control. Fundamentally, it's not keyboard accessible, so it can't be focussed, and even if the checkbox was focusable, this is not the correct use of a checkbox. Unfortunately, we need Javascript for this. It's a hack, otherwise, and creates more accessibility issues than it helps or addresses.
@ernestukut276710 ай бұрын
Nice one! Just noticed it was published 4 years ago! OMG! I've been sleeping to much. Thanks Andrew.
@OrincyWhyteDesigns2 жыл бұрын
The easiest subscribe in my history of youtube!!!! I wish I could like this video one million times. The algorithm was working in my favor today. Im just gonna rewatch it when I hit send on this comment. Thank you Thank you
@rlhismonit4 жыл бұрын
At 768px my menu dissappears when hamburger is clicked and it has a hover box for the links that is stuck in between the logo and the hamburger. I am stumped on how to fix this.?
@richtemen2 жыл бұрын
Very well done tutorial. Clearly described and easy to follow and understand. However, my website is structured differently, and so I am not sure how to modify the code to make it work. Are you open to assisting me with my current code? Thanks,
@majik8954 жыл бұрын
Wanna do something special? Check out the burger king navbar. Do that brother! Tried a few times and came clone but no burger.
@AE-yr6mo3 жыл бұрын
I really like the idea of sticking to just CSS but is this something you'd actually use professionally? Like is it practical / quicker or somehow more efficient?
@quiztherapy68512 жыл бұрын
i've been following along. everything was ok until the part when you click the hamburger menu and it expands showing the menu. Checked all the code 2 times but i cant spot a problem. What can be the reason for this. The video is clear and easy to follow! i was able to create the horizontal lines of the menu until i got stuck.
@Syllos7183 жыл бұрын
Great video, I followed along and couldn't get the hamburger menu to animate to an X. Is this because I was using chrome? Thanks for the great tutorial.
@michaldoubek8914 жыл бұрын
Should we care about accessibility? Because screen reader should only read HTML list with links, shouldn't it?
@maxzamos89662 жыл бұрын
Hi, thanks for the tutorial. I notice that it's necessary to click on the x to make the menu disappear after hitting a link. But is there a way to make the menu disappear once a link has been clicked, without having to click on the x again?
@theoglossa3 жыл бұрын
Great! I've been looking for this. Would this also work with flexbox?
@MiBSuM5 жыл бұрын
Wow! What a great video! This is exactly my taste: Every little bit is explained. This is how someone can really learn things! Thank you very much! There is one little flaw: You've added grey borders to the right of all Menuboxes. Therefore the most right one got this grey border too. How to fix that? Give every 'li' a name and set it individually? And how on earth do I center the menu?? float:center isn't a thing. - I don't know why the developers of css have missed that. So how can it be done? Position:relative; left:50% doesn't do the trick, because it doesn't grab the thing in the middle to position it.
@MiBSuM5 жыл бұрын
Answering myself: Here is a solution: position: absolute; left: 50%; margin-right: -50%; transform: translate(-50%, 0); With transform it actually moves the menu half of it's own width centering it.
@FollowAndrew5 жыл бұрын
For removing the border on the last element you could use the CSS pseudo class of :last-child (see: developer.mozilla.org/en-US/docs/Web/CSS/:last-child)
@dr_e-commerce5 жыл бұрын
Thank You for this video, it's very helpfull!
@rafuri_12 жыл бұрын
I would like to vote you to be my Lecturer lol. impressive work ! you really tell us every single aspect that we need to know.
@arunrawat31424 жыл бұрын
Thank you so much, sir for explaining how the input checkbox trick works.
@rogerschinkler69754 жыл бұрын
Awesome video, easy to follow! Anyway to close menu after click if you have an anchor menu?
@devShahriar3 жыл бұрын
what if we want to make a multiple dropdownbox with this css ?? i have a code can anybody help me to fix it??
@and_rotate694 жыл бұрын
i literally copied the code but it didn't work the menu button didn't show after collapsing
@kainblock2 жыл бұрын
Why 48em is 768px ? I am talking about media query
@prajaktasathe68054 жыл бұрын
A very helpful video indeed! Thank you so much. Though, I was wondering how we could add some content below the header element and make it move down when the hamburger menu is opened.
@rahultirkey79504 жыл бұрын
If you put 135deg then the cross animation would look awesome
@semnijipa2649 Жыл бұрын
Love this. This is an awesome tutorial. Thank you Andrew!
@TheLebronce4 жыл бұрын
but can I make it when I click on the CORP to open the menu instead of the burger?
@ChrisPollard4 жыл бұрын
Nicely done tutorial. Easy to follow along, and appreciate that you took the time to explain the sibling selector instead of just leaving people to either a) already know or b) blindly type along without knowing why. The why is usually more important than just the how. It's always better to understand why you do something a certain way!
@rohankurdekar62384 жыл бұрын
Hello sir I want to know , how to write anything on grey background Please let me know soon
@sova322026 күн бұрын
it`s very cool but how about submenu in submenu?
@wikituby11 ай бұрын
we need source code please to avoid over typing
@dcuztheone7694 жыл бұрын
amazing tutorial. I got much much more than before. thank you sir
@msbecks38063 жыл бұрын
I found this very resourceful and easy to follow. Thanks
@mukut5ul3 жыл бұрын
Great tutorial. Can we avoid float using grid or flexbox?
@pcerrorsandsolutions34382 жыл бұрын
Can I use this navbar with Bootstrap 5? If yes! then how?
@MariaEduarda-cx6jt2 жыл бұрын
thanks for the tutorial. It helped me a lot with my project!
@jkkannoajiya4 жыл бұрын
Menu is not hide and show my html page .. can you check my html and css
@alejandroramos54112 жыл бұрын
Everything is very nice, but I have a question. How do I make my header stay black in pc view? With floated elements the header disappears and the black color is lost. Thanks in advance for the answer.
@alejandroramos54112 жыл бұрын
I discovered that it was missing. position: fixed; z-index: 20; Thanks for the video
@cfitt4 жыл бұрын
Hey Andrew! If you have time for a question I would sure appreciate it. In the header div for this video I tried applying flex box to align the menu, a logo pic and a h1 title and a h2 subtitle. Flex made the css for the menu invalid. Should that happen? Thank you!
@cfitt4 жыл бұрын
Nevermind man. I figured it out. Just took some time.
@charlesbonyo46402 жыл бұрын
I have learnt something from this video. Thanks alot
@batchrocketproject4720 Жыл бұрын
Very clear with really useful explanations. Thanks.
@FollowAndrew Жыл бұрын
Glad you liked it
@yunieskycg3 жыл бұрын
I don't speak english but your tutorial is explained in a masterly way. thank you so much. i think you are the most professional person you find on youtobe and i think it is not right that you have so few followers. i think it is a product of the great ignorance these days .👍👍👍👍👍👍👍👍👍👍
@FollowAndrew3 жыл бұрын
Thank you! 😃
@ahmedch66334 жыл бұрын
Hello Andrew, I wonder if hamburger menu for mobile generally need to hover effect. In my opinion the answer is no. Thank you for the video anyway.
@FollowAndrew4 жыл бұрын
Yes, you are right. No 'hover' on mobile, but hover interactions do get converted to 'tap and hold' on some mobile browsers
@krishnajikulkarni87753 жыл бұрын
Plz tel me How to collapse menu onclick of body
@Kcoaco2 жыл бұрын
You're a really good teacher. Thank you.
@andy_frank2 жыл бұрын
Thank you, really. You are the absolute best
@HELIOSsanta10 ай бұрын
Thank so much You did a great job
@myoozikman4 жыл бұрын
Andrew, thank you so much for an awesome tutorial! This is exactly what I was looking for!
@ihorv443 жыл бұрын
a lot of thanks for such helpful video
@doineedthat4 жыл бұрын
Hello Andrew thanks for this great HTML and CSS menu. cleared up a lot of issues
@FollowAndrew4 жыл бұрын
Glad to help!
@bari88pl4 жыл бұрын
It does not work on mobile :/ why?
@mohamedyoussef88352 жыл бұрын
Awesome Tutorial ++++++++++++++++++ Thank You
@its_ahmed4 жыл бұрын
Thank you so much pro🇮🇶🤍
@RoamingAdhocrat3 жыл бұрын
This is very cool. Thanks for the video! One thing I don't like - you hardcoded the menu height to 240px. If you change the number of menu elements later you'd need to change the stylesheet, right? Can CSS compute that value?
@markzait2750 Жыл бұрын
Very nice video! Thanks!
@PancakePaperie4 жыл бұрын
Hey this is great thanks! I used it and it worked but now I am having trouble creating a dropdown menu from within that menu. Would love to see a tutorial on that!
@blitzgaming27712 жыл бұрын
Wow this is Amazing! Very clear explanation, excellent for beginners like me. Thank you Sir!
@CharlesSmall3 жыл бұрын
Thank you for the video
@scrafya81904 жыл бұрын
You are a fucking legend mate
@johnpelitidis62973 жыл бұрын
Excellent, thank you.
@ErnestSchloesser2 жыл бұрын
This is great! Very well explained. Got yourself a new subscriber.
@georgesmith30223 жыл бұрын
i just found your channel and subscribed. this video was very well done. everything explained clearly. I watched all 43mins. Congrats!
@alicemarie84572 жыл бұрын
thank's a lot for this tutoriel
@mdtechtamizha88133 жыл бұрын
Super great teaching man
@rev15953 жыл бұрын
Thanks for the tutorial. Very helpful. My only problem has been that when I switch the selector from "nav" to a class ".globalNav" (so that I can use the nav tag in other locations) the drop down stops functioning in mobile. The sub links only work when the mouse rolls out, and not when they hover or click. I can't figure out why, if I switch from tag to class as a selector it wouldn't simply work the same.