Responsive HTML & CSS Side Menu From Scratch

Поделиться
HTML-код
  • Опубликовано: 20 июн 2017
  • In this video we will build a responsive collapsible side menu using HTML5, CSS3 and just a bit of JavaScript. We will not be using any 3rd party frameworks or libraries, everything is from scratch
    CODE: Code for this video
    www.traversymedia.com/download...
    CHEAP WEB HOSTING: Check out eHost
    track.ehost.com/594a594410143/...
    SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:
    www.paypal.me/traversymedia
    / traversymedia
    FOLLOW TRAVERSY MEDIA:
    / traversymedia
    / traversymedia
    / bradtraversy
  • НаукаНаука

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

  • @dailywisdom12
    @dailywisdom12 Год назад +4

    Good afternoon Brad, I'm from South Africa and I've been stuck with 2 hour tutorials that end up leaving my brain, but since watching this, you broke it down, peace by piece and fit all that into a 23 min video! Feels like I learnt it all within a day. And it's only that short time. Thank you so much

  • @JOSEFRESHSOL
    @JOSEFRESHSOL 6 лет назад +27

    Brad, you have been a great help for me. The way you explain everything, sinks in. Little things you address such as the reason for a "#" or a "." within CSS are the brain busters because it's hardly mentioned. Those little things along with your extensive knowledge and free videos are crucial to designers like myself learning to transform my PS and IL designs to full fledged websites. Thank you!

  • @Carl-yu6uw
    @Carl-yu6uw 5 лет назад +3

    Loved this little practical demo highlighting how effective just a little css knowledge can be, no frameworks needed. Much appreciated, thanks Brad.

  • @jenoyestewart1516
    @jenoyestewart1516 6 лет назад +1

    Hey, I'm a beginner, and I have been watching all your videos. I'm thankful for you man. You are a great teacher and I want to say thank you. keep up the good work, I appreciate it.

  • @crocodilecrox3758
    @crocodilecrox3758 7 лет назад +3

    Every single topic you cover brad, is plain awesome content!

  • @sugarcaneross
    @sugarcaneross 7 лет назад +3

    This was excellent, Brad! You should definitely do more livecoding-type videos like this, in addition to your great slideshow explanations.

  • @lukeclarke4269
    @lukeclarke4269 3 года назад +3

    Hey Brad, your a legend. Thanks for the time you put into making these videos. It means a lot and you have given me inspiration to chase this as a career for me. Ive learnt so much from your videos

  • @kenilpatel7841
    @kenilpatel7841 7 лет назад

    Even though i do not watch all the videos but i eagerly wait for notifications about uploads from Traversy Media!!
    Honestly web development seems fun while learning from this channel!
    Thanx a lot Brad for all these videos...Hoping to see more and more videos from u!!

  • @mirzasisic
    @mirzasisic 7 лет назад +17

    Tutorials on responsiveness done with vanilla css are such a nice refreshment!

    • @amazingworld4351
      @amazingworld4351 4 года назад +2

      Yeah Brother you are right

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

      Listen Brother are you working on Web development please contact me on WhatsApp no
      I need your help

  • @hippigypsi
    @hippigypsi 7 лет назад +5

    I cant even keep up with you anymore.. you are on a roll. I have a request for CSS Grid lessons if you find time to put a crash course together.. An in depth series would be even better! Thanks Brad!

  • @jay3fox
    @jay3fox 5 лет назад +3

    this was a great tutorial, I am in the middle of doing an End of Module assignment for Uni and this is what I was looking for, thanks!

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

    This is awesome, just dropped straight into my project. I was going to do one myself but this has saved me a ton of work. Just got to move it from the left side to the right side. Thanks loads buddy.

  • @emmanueleze3028
    @emmanueleze3028 6 лет назад +1

    This is my first time of commenting on this channel since i joined and it will definitely not be my last. Been looking everywhere for a good tutorial on this subject until today. After following every step in this video, all i have to say is that you are the BEST tutor EVER. God bless you!

  • @JP-mu5er
    @JP-mu5er 6 лет назад

    MAN YOUR A TRUE LEGEND. EASY TO UNDERSTAND EFFICIENT AND CLEAR VOICE!! WHAT A LEGEND MAN, HTML GET SOO MUCH COOLER WHEN YOU EXPLAIN IT! YOU WON A TRUSTFUL SUBSCRIBER!!!

  • @JohnBeau
    @JohnBeau 7 лет назад +1

    The sidebar has always been something that stumped me, definitely going to be using them now.

  • @bobans
    @bobans 7 лет назад

    Very nice and professional intro with the logo. Bought your Full Stack Web Developer from Udemy, and I have to say I have learned a lot. Keep up the good work.

  • @Z3r0M1st
    @Z3r0M1st 6 лет назад

    Thank you @Traversy Media you make understanding HTML and CSS easy to understand keep putting out content like this with this quality.

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

    Thanks a lot man it means a lot to us! We all are looking forward to see more content like this!

  • @izackom5202
    @izackom5202 4 года назад +2

    Brad teaches programming so well that i relate to him more than my teachers who we interact on a daily basis. Thanks a lot Brad

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

      html and css isn't programming tho???

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

      @@sabertoothwallaby2937 i know. I was mainly referring to his tutorials on vanilla js and php. Damn.....

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

    Since last April Ive been learning web designing in order to find a job in Germany. I dont have any knowledge in IT neither have I ever learned anything else than basic math. I am still struggling to understand the topic but your channel has become an ispiration for me to keep moving. May Allah reward you!

  • @bebesluckyhuman8327
    @bebesluckyhuman8327 6 лет назад

    Loved this, thank you! I am just beginning JS and the little bit of JS in this got me so excited.

  • @jokestream17
    @jokestream17 7 лет назад

    This channel has become one of my favorite tutorial channels in the past few months. Thank you very much for making these videos. By the way, if you don't mind me asking... do you know AWS?? I mean can you do a tutorial series on it?

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

    nice job Brad - low key, kept it simple, good explanations along every step of the way.

  • @lav5688
    @lav5688 4 года назад +5

    Hey Brad i am really very much thank full, i was literally finding these type of Navbar.
    Love from India.

  • @PHInfo
    @PHInfo 7 лет назад +10

    Wow!. I'm very glad to find your channel. Your videos taught me a lot. Thanks.

  • @DivineJesusPrayers
    @DivineJesusPrayers 6 лет назад +1

    @Brad, You are an awesome teacher period!!!
    Your intimate mastery of the concepts you teach and the manner you convey them is truly a breath of fresh air! I have learnt a lot from you ... all i can say is -
    " You are truly a blessing to mankind!!! "
    Thank You Sir!!!

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

    Doing my best to learn HTML and CSS. I have to admit that these videos help a lot!

  • @Dr.Stein99
    @Dr.Stein99 5 лет назад

    Hi. Thanks for writing informative tutorials. I like how you get right to business woth 15 minutes of personal updates and exvuses for not posting.
    Your narration is perfect too. Voice is easy to understand in English.
    Your tutorials helped me as existing programmer to learn the specifics to these functions fast, without the fluff.
    Thank you very much.

  • @tangeric
    @tangeric 5 лет назад +3

    Love your videos! Whenever I'm searching for something and I see your logo, I'm like "Yes! Jackpot!"... Lol

  • @FordExplorer-rm6ew
    @FordExplorer-rm6ew 5 лет назад +2

    I like how you preview each part of this.
    Html5/CSS/Little bit of vanilla JS, for certain components like nav bar etc. .
    These make the perfect tutorials for practicing fundamentals and actually knowing what's going on.

    • @mr.webdev3700
      @mr.webdev3700 5 лет назад +1

      Brad explains everything so well, he is a naturally born teacher! It is true he has been teaching for many years and he had time to perfect his methods, but he is definitely one of the best on RUclips! 🔥🔥🔥🔥🔥🔥🔥🔥🔥

  • @juicynewz
    @juicynewz 7 лет назад

    Bravo Brad, long waiting for a tutorial on these. thanks. your tutorials are amazing.

  • @hishamal-gorashi6164
    @hishamal-gorashi6164 6 лет назад +1

    For the bigger font size in the editor, Thanks a lot Mr. Brad

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

    Nice and easy to follow along! I like how you explained every step too.

  • @danieladetayo3711
    @danieladetayo3711 7 лет назад +195

    Brad for president

    • @TraversyMedia
      @TraversyMedia  7 лет назад +57

      lol, I would get eaten alive by the partisanship. I believe in listening to both sides and forming an intelligent opinion rather than sticking to a team even if it doesn't make sense. Politicians are morons

    • @danieladetayo3711
      @danieladetayo3711 7 лет назад +3

      Traversy Media lol. That's so true about politicians

    • @tusharandriyas6647
      @tusharandriyas6647 7 лет назад +4

      politicians, media, and big corporate houses.....like d cogs of a well oiled ferris wheel.....taking commoners for a hell ride made to look like a joy ride.......nd d oil being corruption......but seriously.....love your videos Brad.

    • @dayo2114
      @dayo2114 6 лет назад +1

      Daniel Ad @

    • @dayo2114
      @dayo2114 6 лет назад +1

      Traversy Media q

  • @tomino133
    @tomino133 7 лет назад +3

    You Sir, are an absolute legend. Thanks for doing these ! :)

  • @benjaminwolke9280
    @benjaminwolke9280 7 лет назад +1

    As always a great tutorial, thanks for that! Just a hint, what might work better: The min-width (for the hidden slide) should be 1 pixel more than the max-width entry (for the hidden nav-bar), else you would show none of them, if the width is exactly 568px.

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

    One of the best tutorials I have found thanks man ❤

  • @JonnyBeoulve
    @JonnyBeoulve 6 лет назад

    Thanks for leaving in the issue at 10:40. It was good practice to pause the video and try to debug your code.

  • @sumantkanala
    @sumantkanala 7 лет назад +2

    Great videos as always, dissecting with clear explanation.!

  • @iTomAnks
    @iTomAnks 6 лет назад

    Your videos are amazing, thanks for taking the time to make them

  • @AdamE2000_
    @AdamE2000_ 6 лет назад

    Im sorry about my comment earlier on, I love your channel. thank you for helping me so much. youve changed your life around

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

    navbahhhh. I love you easy coasters, lots of friends out there. thank you for more content that is always helpful

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

    So glad I found your channel. Thanks for another great video.

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

    Very cool tutorials you have, i'm a subscriber right now!

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

    Awesome instruction. I really need to brush up on my html. This looks great!

  • @mohammedmustafa9115
    @mohammedmustafa9115 7 лет назад +11

    thank you from Egypt this is the easiest and smoothest Slide out menu tutorial i've watched

    • @anselminos5238
      @anselminos5238 5 лет назад +2

      its because the tag is for links and is for writing paragraphs

  • @larrymccall5838
    @larrymccall5838 6 лет назад

    Great presentation. Clear concise and to the point.

  • @georgeoliver652
    @georgeoliver652 7 лет назад

    Great Video, thanks for recommending Emmet, will be very useful in my next IT assignment.

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

    Thank you for another great video! I don't care if it's 3 years old, it's timeless!

  • @birsingh5388
    @birsingh5388 6 лет назад

    One word I can say for Brad. He is greatest. Thank you very much.

  • @harpreetkaur8806
    @harpreetkaur8806 Год назад +1

    Thanks brad ..for teaching informative content. Thnks from the bottom of my heart

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

    thank you so much for this easy to follow tutorial. i am really learning a lot from your videos

  • @sibghatullah6840
    @sibghatullah6840 6 лет назад

    Thanks your all tutorials are awesome and they help a lot

  • @catherinehannan5948
    @catherinehannan5948 6 лет назад

    hey thanks Brad. You are great especially as you explain a you go along!

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

    Thank you so much been looking for this all over

  • @patrickcole1119
    @patrickcole1119 6 лет назад

    Great video showcasing this technique with CSS! Something I've learned recently that has helped is to adjust the JavaScript code to only add or remove CSS classes from the sidebar and main elements. For example:
    ...
    ×
    function openSidebar(){
    document.getElementById('main').classList.add("state-open");
    }
    function closeSidebar(){
    document.getElementById('main').classList.remove('state-open');
    }
    ----- Stylesheet ----
    .side-nav {
    position: fixed;
    width: 0;
    ...
    }
    .side-nav.state-open {
    width: 225px;
    ....
    }
    Your stylesheet can then have all the appropriate style code to adjust the width and have transitions as long as the .state-open class is present on both elements. Removing the "style" from the JavaScript code makes it more responsive. In other words you could have a media query for different device sizes that use the same .state-open class and adjust width accordingly.
    Just a suggestion on another way to approach this. Keep up the excellent content!

  • @Jakhongir84
    @Jakhongir84 7 лет назад

    Great content Brad. I love your channel man. Thanks for what you do. Learning a lot from u.
    Since u r making small project now, i would be great to see A Contact Form Section with js validation.
    Thank you!

  • @PierreZaharakisPhotography
    @PierreZaharakisPhotography 2 года назад +1

    You are awesome . I just discovered you . good job . you are a good teacher

  • @saminengkong6204
    @saminengkong6204 6 лет назад

    Brad save my thesis, thank you so much man

  • @_Apex
    @_Apex 6 лет назад

    hey brad absolutely love all of your videos they truly helped me a lot. I was wondering if you could save the file after every line so we could see a live update of what each new addition does

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

    Instead of using SVG tag, you could use ☰
    You could then use font-size to scale it and use color: #fff; to make it white. It runs much faster, and it's much more time-efficient.
    Hope this helps!

  • @ivanklaric4004
    @ivanklaric4004 7 лет назад +4

    Thanks mate, make more videos like this one :D
    Full CSS guide would be great.

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

    Thank you! This was an awesome tutorial and im happy i understood most of it.

  • @shraeychikker694
    @shraeychikker694 7 лет назад

    Really good content!
    Please make a video/series on how to make a full blown web app/site using php(laravel) or node.
    Keep the amazing videos coming, man ;D

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

    Excellent Tutorial...thank you Brad!

  • @matt52636
    @matt52636 7 лет назад +42

    Great tutorial im 13 and you have managed to explain it perfectly :D

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

    Another great lesson Brad. Thanks!

  • @blackbones77
    @blackbones77 6 лет назад

    Nice tutorial thanks Brad. I think "Ctrl+D" should also duplicate a line in Atom, like a good bit of code editors. Saves time on copy/cut & paste actions.

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

    20:49 these moments makes me smile when you don't cut these happens out of your tutorials. Otherwise you are a magician. The God i chose i believe in.

  • @2005Azm
    @2005Azm 6 лет назад

    This is one of your best tutorial !

  • @mza1409
    @mza1409 7 лет назад +82

    A true brogrammer ♥

    • @TraversyMedia
      @TraversyMedia  7 лет назад +14

      hahaha :)

    • @sivnfrens
      @sivnfrens 5 лет назад +4

      brogrammer :) good name, totally going to use it, thanks

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

      brogrammar* nazi

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

      @@TraversyMedia sorry just a question: why my xclose btn, doesn't close when I click on it?

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

      @@benjaminmartin7702 you gotta debug

  • @BW-sl6tb
    @BW-sl6tb 6 лет назад +1

    Great tutorial Brad, thank you!

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

    You explained so well! Thank you 🙏

  • @omarnazih8529
    @omarnazih8529 7 лет назад +5

    i'm in love with your videos

  • @dominikseljan3043
    @dominikseljan3043 7 лет назад

    I'm so glad I found your channel :D

  • @NerdyKatsChannel
    @NerdyKatsChannel 7 лет назад +2

    Ah-mazing! Thank you as always

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

    You saved me so much time! Thank you so much!

  • @nagahumanbeingzooofparticl8836
    @nagahumanbeingzooofparticl8836 6 лет назад +2

    Hey Brad love your Videos as always..👍👍

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

    thank you i really enjoyed your teaching....it was really interesting.

  • @anesthetized8
    @anesthetized8 6 лет назад

    Very good tutorial! Helped me a lot! THX!!!

  • @hamidcoder
    @hamidcoder 6 лет назад

    Thanks bro very nice and informative tutorial. keep it up Man

  • @ankitmehrotra8519
    @ankitmehrotra8519 7 лет назад

    Thanks a lot Brad for another valuable tutorial..

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

    Thanks, can't wait til I'm on your level

  • @VinhLe-gc8ws
    @VinhLe-gc8ws 6 лет назад

    I'm a no frills no framewrok kinda guy, and just learning! More vanilla tutorials please!

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

    thanks man you point me to the right direction

  • @Diplomat82
    @Diplomat82 7 лет назад

    I'm currently in a boot camp. Literally, I watch your videos while I'm in class EVERYDAY! Today were doing backend. Nodejs, building a form.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +3

      Sounds cool. Thanks for watching. How are you liking the bootcamp?

    • @Diplomat82
      @Diplomat82 7 лет назад +1

      Well, I didn't have much time to do pre-work, I was working a full-time job. So once I quit my job, I may have had 2 weeks of @freecodecamp and youtube tutorials. I knew it wasn't;t going to be enough. I guess I expected the instructor to go into detail about the basics. So the first 4 weeks have been a blur. Monday we started Backend, Node.js etc. Oh yeah, your Node tutorial saved me. We spent 2 weeks on Javascript maybe. I barely know anything. I plan on watching your Javascript for beginners. I've just come to realize this boot camp is like a stepping stone I guess. I won't come out of here with the expectations I had coming in.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +2

      Well just try and pace yourself. I guess it's not called a bootcamp for nothing. Take from it what you can and keep learning. Glad I could help

    • @Diplomat82
      @Diplomat82 7 лет назад +1

      Yup, that's my goal! I've already sent your link to like 10 people in my class in the last week. Keep the vids coming man.

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 5 лет назад

    I am just wondering why are the list styles under the ul section and not li? I tried to add a drop down menu here but for some reason, it then stops behaving as it should....

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

    great tutorial, you are an excellent instructor

  • @lariannysmunoz8703
    @lariannysmunoz8703 6 лет назад

    Thank you so much! Is very easy, usefull and simple!

  • @alibadreddine5638
    @alibadreddine5638 7 лет назад

    Thanks for the awesome tutorial
    this helped me create my cheat sheet

  • @himanshupanth6301
    @himanshupanth6301 7 лет назад +2

    You're awesome Brad

  • @daniekpo
    @daniekpo 6 лет назад

    Great job Brad!

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

    Thank you from my heart Brad

  • @7skitchen884
    @7skitchen884 Год назад

    I truly feel like iv'e learned more from watching this video than my first month attending Coding Dojo

  • @brianruff1211
    @brianruff1211 6 лет назад

    good stuff, thanks for posting, ill be implementing this on a website im making for someone.

  • @georgeliss4015
    @georgeliss4015 7 лет назад +10

    another AWESOME video!! Thank you!
    I didn't know that there are BRO-looking devs out there!! ;)

    • @TraversyMedia
      @TraversyMedia  7 лет назад +6

      haha, your welcome

    • @uiuxdevelepor4191
      @uiuxdevelepor4191 7 лет назад

      Since i came across your channel, i feel relieve. Thanks for this awesome lessons. Please how can i be good like you?

  • @IlemonaJamesAtuluku
    @IlemonaJamesAtuluku 7 лет назад

    Once is from Brad is a must watch

  • @macavalverde6136
    @macavalverde6136 Год назад +1

    Excellent video, it help me a lot, thanks♥

  • @eric7758
    @eric7758 6 лет назад

    The Real mvp is Brad. Respect bruh

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

    the tutorial is very good I like it, it makes learning easier for me.