Sidebar Menu with sub-menu using HTML CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 28 мар 2020
  • Sidebar Menu with sub-menu using HTML CSS & JavaScript
    Responsive Sidebar Menu using only HTML & CSS
    ➤ • Responsive Side Menu B...
    Responsive Dropdown Menu with Search Box
    ➤ • Responsive Dropdown Me...
    Responsive Mega Menu using only HTML & CSS
    ➤ • Responsive Mega Menu a...
    Download Codes From Here (You may have to search the title of this video there) - codingnepalweb.com
    My Code Editor - • Best Text Editor for H...
    Facebook - / coding.np
    Instagram - / coding.np
    Music Credit:
    Track: BEAUZ & JVNA - Crazy [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • BEAUZ & JVNA - Crazy |...
    Track: Lost Sky - Dreams pt. II (feat. Sara Skinner) [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • Lost Sky - Dreams pt. ...
    ROY KNOX - Blue Eyed Demon [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • ROY KNOX - Blue Eyed D...
    Track: Culture Code - Feel Again (feat. Harley Bird) [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • Culture Code - Feel Ag...

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

  • @CodingNepal
    @CodingNepal  3 года назад +18

    Nowadays font awesome CDN link/script that I provided not support so your icons may not be showing. Just replace that line no.8 script tag with this

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

    I very much see an artistic approach with that Hover effect mr designer

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

    Followed it step by step checking myself every few lines/change, works great and learned a lot.

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

    thank you so much this tutorial is pretty amazing and I loved how you always referenced what you were styling by going back to the html page and clicking on it for us to follow along... I'm not so great with JS yet is there a work around to make it work with css where the menu does not hide but the dropdowns can be displayed when you click

  • @45sachindige14
    @45sachindige14 2 года назад +5

    Literally I m searching this tutorial for many days
    And finally get this perfect one 👌
    Just one word for you dude
    #Awesome

  • @GG-zj7oi
    @GG-zj7oi 3 года назад +9

    This is the best sidebar tutorial I've ever seen!! And with the source code! subscribed! You deserve a lot more subscribers

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

    Hi, is there a video explaining how to create input forms after clicking on the some sidebar menu? great video by the way, i followed your step and i could achieve the same sidebar menu, keep it up please.

  • @super-TechCctv
    @super-TechCctv 5 месяцев назад

    mainy sirf is liye subscribe kiya hai q k itna acha code milla hai mujhy or wo bhii free to is liye ek subscribe to banta hai.
    Lekin hats of jo mehnat hai apki love you from Pakistan brother!

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

    You are doing very good social work for poor devs like us. thanks a lot.

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

      You're welcome... Stay tuned 😁

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

    That was awesome to watch. Can’t wait to build one!

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

    Hi Mr. Very nice. I have just one doubt, When I clicked over a submenu option, one of the menus remains selected. How can I remove when clicked above other option menu?

  • @albertojeraldr.3520
    @albertojeraldr.3520 2 года назад +1

    thank you for the wonderful lesson i watch i hope you got more blessings to come thank you have a great day always!

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

    Learned so much in this video! thanks for sharing.

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

    These are truly inspirational keep uploading please.. you are fielding me to keep learning

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

      Thank you 💙😁... Keep learning.

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

      Is it possible to do a version of the css for this header, I will I just get stuck a lot and get.. disheartened with no teacher it’s difficult. But your videos to study and learn from is a positive ♥️ now I just need to work out a few things I don’t get yet..

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

      Song name?

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

      Song name link is in description... Yes it is possible to styling elements in html file using tag inside tag

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

    that part of the arrow didn't work for me :( But I'm working! Thank you man! The best video!

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

    this tutorial is excellent, and I want ask: How close the sub-menu in the sidebar after closing Hamburger Icon?, because when opening the Hamburger Icon all sub-menu is closed.

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

    Excelente video, gracias por el gran aporte

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

    Thank You so much for creating this video....It helped a lot...

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

      You're welcome.. Stay tuned 😁

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

    You should put in the title of this vid that you are using JQuery as one of the techs

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

    Very helpful! Thank you so much!

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

    Thank U for this nice tutorial. Is it also possible to let the sub menu slide down smoothly?

  • @blessed-favored
    @blessed-favored 4 года назад +1

    Good job. Kindly do a video with both the top navbar and the sidebar.

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

      Just watch our navbar videos and changes some codes.

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

    amazing background music,
    and video also

  • @Roro-mf8oe
    @Roro-mf8oe 3 года назад +1

    Hi, Thank you for the superb video. If I add some content in the content area and the page is not scrolled up and down. please let me know how to resolve it?

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

      First add overflow: scroll; and the sidebar has also position: fixed; so your page isn't scrolled... Change the position of sidebar to position: relative; .. You can contact me on Instagram for further help - instagram.com/coding.np

  • @justexceed8353
    @justexceed8353 10 месяцев назад

    how do you link the html pages of the submenu without collapsing the submenu after getting directed? for example i clicked on Features > Pages, the dropdown "Features" is open on the main page, when i get directed to the "Pages", the sidebar menu should be open and the Features dropdown should also still be open while it is highlighted as it is active.

  • @2010appra
    @2010appra 3 года назад +4

    Currently, when clicked on the menus it opens the submenus and when click another menu it again open the submenu but How to close rest of the opened dropdown submenus while clicking one of the menu?

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

      You may did some mistakes on codes.... Download codes from here - www.codingnepalweb.com or contact me Instagram for further help - instagram.com/coding.np

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

    Grear utulity and nice video..
    How do i change the fonts for the menu options. Fo instance there is a mandatory to use system fonts like Arial in the company.
    If i change the style ".Sidebar .text" for Arial font its not working..

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

      You've to use font-family css property to change font.

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

    HI there! I have a question, how would you implement a scrolling bar in the sidebar menu? Thanks!

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

      Just put this...
      .sidebar{
      overflow: scroll;
      }
      If this not work... Please contact me on Instagram and I'll do the codes of this and send to you.

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

      @@CodingNepal can you please send me the code

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

    I used this code, but this overrides the other css properties. How can we have two css linked to a single html page without overlapping. Adding the sidebar makes a lot of changes to my original css

  • @ImranKhan-xi4jz
    @ImranKhan-xi4jz 2 года назад +1

    i clear some problem to this video sir thank you

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

    Hola, no me funciona el botón de salida. Me dice que el objeto no se encuentra localizado. Ya verifique que la ruta se encuentre en ..procesos/salida.php. lo coloque el href de la etique a. ¿Cuál podría ser el error?. Erro 404.

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

    I want to make background blur when sidebar opens and then remove background blur when sidebar closes and I want to close the sidebar when clicking out side it, can you help pls

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

    Can you please make a responsive megamenu .
    Btw, Great Content.

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

    Useful video. using HTML side menu can we create data entry module and data should save in google sheet.

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

    I didn't even know about jQuery, but adding jQuery link and using javascript like that way i got that jQuery is nothing but just a short-hand

  • @blakisdds2787
    @blakisdds2787 2 месяца назад

    bonjour, Merci d'abord pour la video, cependant, je n'ai pas compris d'où est sortir le menu 'berger' vers la fin. Ensuite, comment on peut faire pour placer le menu verticalement?

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

    5:57 how did you get the hover sound :))

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

    thanks for sharing such an amazing video

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

    when is your website going to be available ?

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

    Can you explain to me why the links are only colored when the a href="#"?

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

    how can you do this?
    left side coding & right side result at a time???

  • @ArunSharma-ii4sh
    @ArunSharma-ii4sh 4 года назад +3

    i like your videos and i learn also.

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

      Thank you 💙

    • @ArunSharma-ii4sh
      @ArunSharma-ii4sh 4 года назад

      @@CodingNepal hello sir i need ur help, sir i want to make mlm web so how to make this site with logic. Plz help me sir.

  • @b-laggersvlog2182
    @b-laggersvlog2182 3 года назад +2

    Good day! I use this on my project. It's cool but it always overlaps my main content. can you help me how to solve this? thank you so much!

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

      Give z-index to your content.

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

    useful tutorial, I hope it responsive too

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

      Here is responsive sidebar video - ruclips.net/video/c5kWKnESUjY/видео.html

  • @flick--spadegaming9617
    @flick--spadegaming9617 2 года назад

    arey fellow nepali boro good job hai keep going

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

    Nice guide, thx

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

    Hi, I have a Question: how do you get the content to slide over too, when you push the menu button?

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

    can you make the main menu shrink when the side bar appear, thanks that would be so helpful

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

    Thank you! Good!

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

      You're welcome.. Stay tuned 😁

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

    Thank you lods!

  • @AnjuGupta-jy6lj
    @AnjuGupta-jy6lj 2 года назад

    i have written all the code but when i seeing ti on browser only menu icon is coming and when i am clicking on it it is only sliding and showing up my menu

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

    How can i make the menu displayed from beginning?

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

    Thanks for sharing!

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

    I am using these code in nuxt so in click how i use javascript in this?

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

    I saw that you write a JQuery function for both dropdowns. isn't there a way to write a single function for both?

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

      Single function will open both Drop-down at same time. So I created onclick function for each dropdown.

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

    is it possible to open this sidebar in right side of the page?

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

    WOW
    Uploaded 29 March 2020...
    I'm here on 29 March 2021
    lmao

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

    #Excelent!

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

    how to close previous dropdown menu when clicking another dropdown menu?

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

    Great absolutely great

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

    Thank you for your great video! but i have a problem when i click .feat-btn, it does toggle but after 1 sec the page refresh itself automatically. How can i solve this?

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

      Have you downloaded my codes?

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

      No, i haven't. I wrote all code just like in your video.🥺

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

      Now download my codes and check where you did mistakes.

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

      Thank you, I found my issue because i forgot to put # in href. :)

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

    Hi,there.I can’t see the full import url in the video.can anyone type it to me.I’m just a beginner.I don‘t know if it is necessary for the Js file.

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

    pls answer my question , what app u used? D;
    i wanna try to use it

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

      I'm using Atom.. Here is the video - ruclips.net/video/55VjXTeYkTE/видео.html

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

    thank u bro ;)

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

    Great videos

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

    I'm facing a problem with the font awesome icons and its style properties. Could u plz help me. And also please provide me the font awesome js link. I didn't get anything like this.

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

      You can get source codes download link in the description.

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

    thanks a lot

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

    Is there any way to put an with a source in white body area?

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

      Yes...you can use any other on the white space like video, images etc.

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

    Very good

  • @oscardbg9654
    @oscardbg9654 4 года назад +6

    i'll appreciate if you write jquery instead of javascript on the title, because its confusing and both things aren't the same

  • @haripriya.u6951
    @haripriya.u6951 Год назад

    How to create submenu without slide bar in dynamically in javascript drop-down

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

    but why did u use $ on the js? mine doesnt work

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

    excelente trabajo pero lo triste es que el autor perdio la voz....

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

    this is great but as a newbie im overwhelmed afff

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

    Can you post videos for courses? HTML and CSS

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

    Hello...my .sidebar toggleClass is not working...after clicking on bar they are not showing sidebar menu...plz help me

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

      You may did some mistakes please download codes from description link and check it with your codes.

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

      Yes I corrected@@CodingNepal

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

      I want to add sidebar and navigation bar on same page...plz guide me for this if you can@@CodingNepal

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

    good but my question is that. side bar active show as block when i click then side bar hide?

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

      I didn't understand

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

      how i send screen short of this site email? fb link?

  • @HieuPhan-jt8bj
    @HieuPhan-jt8bj 4 года назад +1

    thanks you

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

    the @import url in the css part, it's not complete. what's the full code of it?

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

      That is google font link. You can add there any fonts. If you want it then contact me on Instagram.. I'll send you code.

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

    Wow Sir

  • @rkmixy1748
    @rkmixy1748 11 месяцев назад +1

    I have a question can you talk me answer??

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

    Nice

  • @SandeepKumar-bt3hw
    @SandeepKumar-bt3hw 2 года назад

    span function not working in my computer why?

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

    thank u!

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

    I liked it very much

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

    Hello there, I`m trying to implement this in my project but I'm using Angular 8 and unfortunately is not working. Can you help?

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

      Send me your code here - instagram.com/coding.np

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

      CodingNepal ok I’ll send to you thanks

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

      me too, i want to implement it into my angular project but this is so confusing @@

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

    Thanks

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

      You're welcome... Stay tuned 😁

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

    Bro same style ma tara side bata nabayera mathi bata launa mildaina ? Yeso bandim na bro

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

      Milxw bro... Mero navbar videos herw... Sikihalxau.

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

    Hey there , I am facing issue with the submenu! i need help!!

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

      Contact on me Instagram - instagram.com/coding.np

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

    How to add these JS scripts in wordpress i'm using wp and this script is unable to run ->caret btn
    please give the solution

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

      Just add this script tag before the end of body tag

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

    how to set only one menu open, it one open, other menu is close

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

    Bro I was walking with you step by step, but when I’m clicking the caret-down the hidden ul isn’t showing. The only thing I didn’t understantd is the show we added after feat-show.show, where did the .show came from?

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

    i wanted to ask
    how can i insert an image next to my sidebar????
    because i dont really get it on how to do it

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

      Watch this - ruclips.net/video/V0O4pY2xX10/видео.html

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

      Ok, I get it now, thanks so much

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

    GREAT

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

    Code have an error... if I add many menus in sidebar that menus at bottom becomes invisible please correct it

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

      Add this code on css file:
      body, .sidebar{
      overview: auto;
      }
      If this won't work contact me on Instagram.

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

      I message you on instagram..still it is not working@@CodingNepal

  • @techno7761
    @techno7761 Месяц назад

    Where is result of side menu selection?

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

    I have done everythins according to the video but why submenu dosen't work?

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

    hey, nice video but I need some help with the code to open the submenu.

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

      How can I help you?

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

      @@CodingNepal nevermind, It's fixed. Ty anyways

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

    i hope you make to drag and drop file to the area.

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

    Seria mas chevere y mejor experiencia que cuando se de click al features o a cualquier otro item los demas se cierren solo.

    • @Ivaylo_.
      @Ivaylo_. 3 года назад

      Verdad jajaj

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

      Seria mas chevere que aprendieras a apreciar el trabajo de otros, y si quieres algo extra, lo hagas tu mismo.

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

      @@lucasgalvez3364 ya lo hice bb, ahora por q te arañas. Solo es un consejo, un punto de vista ahora dije seria más chevere no dije esto no sirve, como estará tu triste vida...

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

      @@cesarcardenas3820 jajaja que combinación de palabras usaste, me quedo sorprendido, a ti ni te conozco, pero por tu comentario, ya deduzco que eres el tipo de gente que le gusta fijarse en lo malo y aun sabiendo eso intenta justificar sus comentarios con es solo un "punto de vista", si tu piensas que mi vida es triste pff, mas triste será la vida de la gente que te tiene cerca y tiene que aguantarte. Aprende a apreciar lo bueno de las cosas.

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

      @@lucasgalvez3364 bebe seria mas chevere que primero entiendas lo que lees 6 después comiences a ladrar todo lo que quieras..