12 | CREATE A WEBSITE MENU BAR IN HTML | 2023 | Learn HTML and CSS Full Course for Beginners

Поделиться
HTML-код
  • Опубликовано: 31 дек 2022
  • In this video I will teach you how to create a website menu bar using HTML and CSS. 🙂 The website header will contain a logo, a menu, and some social links.
    Images: drive.google.com/drive/folder...
    Full playlist: • 1 | INTRODUCTION TO HT...
    ➤ GET ACCESS TO MY LESSON MATERIAL HERE!
    First of all, thank you for all the support you have given me!
    I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
    I am now using Patreon and RUclips Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Memberships: / @dani_krossing
    Patreon: / mmtuts

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

  • @NexusNews-yd6if
    @NexusNews-yd6if 4 месяца назад +7

    i love this i am 9 years old and still can learn coding from him

  • @lorizonval
    @lorizonval Год назад +5

    i hope ur still into making videos like this. cuz im learning with your all courses! thank you for having courses/videos content like this!

  • @arick9778
    @arick9778 Год назад +3

    Thank you so much for this - been trying to align my header items (logo, nav, sm) for hours using display:block/inline, completely forgot about flex and how to use it. Keep doing what you're doing bro, we all appreciate it, massively!!

  • @xdsumi
    @xdsumi 3 месяца назад +2

    I had a great time following these courses so far, I can't wait to find out more! Thank you for teaching us this.

  • @DejanPavlovic-tu8vj
    @DejanPavlovic-tu8vj 10 месяцев назад +3

    I like how you explaining for mistake you made for row/column gap... it was so cute.. You are just a man.. happens ... Thank you for your service man hahah Your videos will help a lot of people ! Thank you

  • @pattymedeiros1395
    @pattymedeiros1395 15 дней назад

    Omg, you were born to teach. You do it perfectly.

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

    extremely useful tutorials! thank you for your work

  • @MwishaLudack
    @MwishaLudack 9 месяцев назад

    Excellent job, Dani.
    One thing I notice is that, it does not matter how much we claim to know, learning will always remain in demand.

  • @arshad1781
    @arshad1781 Год назад +2

    Thanks for sharing free knowledge 🙂

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

    Just in time. I was trying to do almost exactly what this does and your method works. Mine got close but it was clumsy.

  • @davidspot191
    @davidspot191 8 месяцев назад

    Really glad I followed the whole process. Learnt alot especially about flexbox.

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

    The best video that I ever found about coding! Thank you very much 🙏😍😍😍

  • @djfago6240
    @djfago6240 Год назад +3

    this is so far the best way to teach someone . your teaching skills are from another level. Thank you very much for sharing your knowledge with us for free.

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

    And I'm loving it too. I like all the mistakes Dani makes because these are the same mistakes i would make. I then like how he fixes them. I very much like how Dani is helping us build a website together.

  • @fissionchips223
    @fissionchips223 10 месяцев назад +4

    Wow, what a bounty of knowledge, Dani. This and your Flexbox video are both a little overwhelming (which is entirely understandable) - but you make this so clear that I will enjoy watching these again to allow for better "absorption" . . . When other teachers have gotten this "thick" I usually just zone out and have difficulty paying attention. You make this so approachable that I like looking forward to re-watching these. Thank you for bringing such excellent instruction to CSS! Great work!

  • @user-yu3yd8gt5f
    @user-yu3yd8gt5f 3 месяца назад +2

    good work..i have learned alot

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

    Great video many thanks ..

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

    This class is superb!

  • @user-ly6gg8vx6c
    @user-ly6gg8vx6c Год назад

    This is so helpful for me , thank
    you.

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

    Your channel deserves a lot more love

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

    Definitely I’m going to build my own website with this tutorial

  • @denhamk
    @denhamk 4 месяца назад

    Thank you for leading me here, Dani .. this video is great! I actually came to find out how to attach my Navbar to other pages so that I don't have to manually edit my navmenu on every page.
    I acutally learned a few more tricks by watching this. 👌🏽 But couldn't find a way to link my Nav bar to the other pages..

  • @OmarTaha-pj8vv
    @OmarTaha-pj8vv 3 месяца назад

    Your cousrses are awesome!

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

    enjoyin your cours keep it up

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

    Daniel... I usded to work with php and a mysql-DB like 15 years ago. After having an intense view on your videos I realized: Kumi knows NOTHING! I watched alot of tutorial videos, but yours are FAR THE BEST! You're making me understand stuff in just a few minutes, that on others channels will take me hours! Go on with this. I really love your vids. You are taking me onto another level!

  • @santiagobenjamin4752
    @santiagobenjamin4752 2 месяца назад +1

    you're the goat for sharing all this

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

    Thank so much! ❤

  • @Kennethlumor
    @Kennethlumor 8 месяцев назад

    Sir God bless you so much for impacting knowledge in me

  • @DavidTheITGuy.
    @DavidTheITGuy. Год назад

    Well done mn

  • @diakokhalandi1115
    @diakokhalandi1115 8 месяцев назад

    Hey thx for your content i had a question and cant find an answer online how can i for example have 3 of the items at flexstart and have the contact us at flexend? Is it possible without using margin?

  • @legendaryempire6507
    @legendaryempire6507 3 месяца назад

    Quick tip that will make your workflow faster. Download Live Server extension using the extension tab. It automatically refresh your browser for you, anytime you make changes and save the changes.

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

    thank you sir

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

    THANK YOUU SOO MUCH

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

    Hey Dani, when I try to change the cursor to a pointer it doesn’t change. Any ideas why?

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

    First here, from Ghana

  • @rayaawilliams9203
    @rayaawilliams9203 11 месяцев назад

    Hi, I can’t seem to find where you talk about making the header sticky

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

    Can you pls do a video about how to connect your login page to the shopping cart with order history?

  • @Stoney_Eagle
    @Stoney_Eagle Год назад +3

    When I created my video player UI I used colored boxes to layout everything, it's such a great way to visualize layouts. The only ting is... you run out of highly distinguishable colors very easily 😂

    • @Aliante4
      @Aliante4 Год назад +2

      You can use borders to add distinctions :)

    • @fissionchips223
      @fissionchips223 10 месяцев назад +1

      I really appreciated this strategy as well. I appreciate your sharing!

  • @ardavural4649
    @ardavural4649 5 месяцев назад +1

    Hello Dani! Firstly, I'm newbie and i rly thank you for your conrtent. It is rly helpful for me. But i wanna ask something. At 36:36 , when i do display:block , all my menu items are becoming vertical. Like all stuff "ABOUT", "CONTENT" is on top of another. But when i do display: inline-block; then it becomes horizontal again. why is it different than yours?
    .index-header {
    background-color: bisque;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    }
    .index-header-search-bar {
    margin-left: 40px;
    background-color: aqua;
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    }
    .index-header-search-bar a {
    margin-right: 5px;
    }
    .index-header-menu {
    margin-right: 20px;
    margin-left: 20px;
    background-color: aquamarine;
    width: fit-content;
    height: 100%;
    }
    .index-header-menu ul{
    list-style: none;
    margin-right: 10px;
    }
    .index-header-menu ul li {
    display: inline;
    margin-right: 20px;
    }
    .index-header-menu ul li a {
    line-height: 60px;
    display: inline-block;
    height: 100%;
    }
    .index-header-menu ul li a:hover {
    color: rgb(143, 37, 37);
    }
    I have a little bit different code than yours but it is almost same. (index-header-menu is header-main-nav for you.)
    when i changed my code from display:inline-block; to display:block; the mistake is happening that i have mentioned.

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

    What about changing the hover image for the logo?

  • @mihneapria3398
    @mihneapria3398 11 месяцев назад

    Hello Daniel.I have a problem,after i do it as you,but i don t see the maine header:(..

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

    Hey Dani! when I resize my web browser, the contents in my menu moves below each other. I have the styling exactly how you have it. any thoughts? I am using goggle chrome

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

      If it's when you make the screen smaller things don't fit as they should. That's where using media queries comes in :)

  • @patrickmclaughlin6013
    @patrickmclaughlin6013 4 месяца назад

    Just learning here,
    Now how does this get connected to the pages, like Home, Products, About, ....
    Do you have to recreate it for every page or is there an "include" to just add to a new page?

  • @sandeepnepal4467
    @sandeepnepal4467 7 месяцев назад

    When I enter the text "HOME" inside my tag, it shows up in the browser with the background color. How do I get rid of that background color and just show up the text like yours? I've added my reset CSS file, I tried using background-color as none as well for ".header-main-nav li" and didn't work. Then, I set background-color as transaparent !important as well and didn't work.

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

    Hi there! I am curious to know if it would be better to use display: none to hide the fb and insta icons when pre loading it in the body rather than the method shown in the video.

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

      That method doesn't work anymore 🙂 I believe I explained that in my earlier "image video", so if you want more info it is in there 🙂

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

      @@Dani_Krossing Hi Dani ! Thanks for letting me know and responding, I wasn't aware of that.

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

    Hey Dani sir! could you make an updated JS tutorial also🙏

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

    Hi guys,
    Can someone tell me why i cannot block display of anchor even thought i wrote display and height correct?

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

    so i have a problem: henever i tr to put the image, the text: HOME, etc. doesent line eith everything. do u kno hy?

  • @angryjellyfish5347
    @angryjellyfish5347 Год назад +2

    Hey :) really loving your content, so much more useful than the course I'm doing. When it came to putting a gap between the media icons, it comes up with row-gap, but col-gap didn't work. Just using gap seemed to do it. Is this an issue or is it ok to use going forward? Awesome job :D

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

      it's *column* and not *col* -gap. That threw me off a few times from the shorthand method, that the programming for the feature was spelled out fully. LOL

  • @alexvang2579
    @alexvang2579 9 месяцев назад

    the colors except for white aren't showing up on my end. :(

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

    Why not make a list for the icons? Wouldn't it be easier to just set the parameters for both of them at the same time?

  • @kennethharris-official5661
    @kennethharris-official5661 10 месяцев назад

    html lang ="da" ikke dk ( og hvis det er iso er det da-DK tror jeg nok ).
    Super gode videoer :)

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

    are you going to adapt your website to mobile version?

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

      Yes as soon as the front page is finished, then I will create a video where we make the entire page responsive. 🙂

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

    Sorry a newbie question but how do I watch the HTML & CSS RUclipss in sequence?

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

      On my channel page there is a playlist 🙂

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

      @@Dani_Krossing Thank you, I was looking for that but couldn't find it for some reason. Now I went straight to it! And that was the easy part!😂😂😂

  • @Kennethlumor
    @Kennethlumor 8 месяцев назад

    Please can you add a slide bar to this navbar

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

    Waiting for next video 🤧

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

    this code wont work for edge the fb icon is not viseble ant the insta icon goos invisble when hovert on for the rest does this code work if i use firefox the insta icon turn white the rest of browers it works just fine but can u give us an selution so it works all browers

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

      If you followed the video exactly, then it works in all browsers 🙂 If not then you most likely made a typo somewhere.

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

      ​@@Dani_Krossing not a typo its adblocker plus that blocks some code

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

    i don't know if you'll gonna see this but when I hover my social media picture it enlarges and when I tried adjusting the size of the hover picture the other navigations move sideways and the picture will move away from my cursor like it doesn't want it to be clicked.😅

    • @Dani_Krossing
      @Dani_Krossing  10 месяцев назад +1

      Sounds like your CSS either differs a bit from mine in the video, or some of your CSS is not getting updated in the browsers cache. 🙂
      Try going to your browsers history, and when you clear the history, make sure to only toggle on "images and files", and make sure it's set to "all time".
      If that 👆 doesn't solve it, then it is a typo in your CSS causing it, or because our CSS aren't the same. 🙂
      And yes... I do see ALL comments on my channel. 😉

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

      @@Dani_Krossing whoa thanks for the quick reply.I'll look into it immediately.Also I wonder if you provide a simulation class or mentorship for what's it's like working as a junior web developer.Just to prepare and evaluate myself if I can work in that kind of environment🤗.

  • @nihelmariam5120
    @nihelmariam5120 8 месяцев назад

    what to do to type a a name in the navbar instead of a logo ??????

    • @user-hy4ws2ex9g
      @user-hy4ws2ex9g 2 месяца назад

      H1 tag you can also put it in a div with the same coloring of the nav bar

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

    can u please do a new js tutorial🙏🙏🙏🙏🥺🥺

  • @Teegray1124
    @Teegray1124 11 месяцев назад

    the anchor doesnt need a closing tag.

    • @Dani_Krossing
      @Dani_Krossing  11 месяцев назад

      If you don’t close the anchor tag, then everything after would be considered a link. So yes, the anchor tag does need to be closed. 🙂 I’d love to know why you don’t believe it needs to be closed?

    • @Teegray1124
      @Teegray1124 11 месяцев назад

      @@Dani_Krossing it was mor a question lol, thanks for the explanation.

  • @bcd3321
    @bcd3321 9 месяцев назад

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

    First 🤣

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

    The whole video is blurry, is that not the case for anyone else?

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

      It is completely crisp and sharp on my end. I think you need to try and reload the video, or increase the quality of the video. In a lot of cases your internet speed will auto adjust it too, so check to see if that is the issue. 🙂

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

      @@Dani_Krossing increase the quality of the video was a gold mine response thank you!

  • @DejanPavlovic-tu8vj
    @DejanPavlovic-tu8vj 10 месяцев назад

    Man made Columbian flag :)

  • @MsCellobass
    @MsCellobass 6 месяцев назад

    Your vid is a little pointless since you arent showing effect in browser

    • @Dani_Krossing
      @Dani_Krossing  6 месяцев назад

      I'm not sure what you mean? 🙂 Not only did I show the navigation visually in the browser every time we did one step further, but I also colored the segments for you to better understand how everything worked.
      If you by "effect" mean that we didn't "click one of the links to go to another page", then I think we can both agree that your comment isn't really about "my video being pointless"... But more about you perhaps being frustrated, and now taking your frustrations out on me.

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

    My class (.header-main-nav ul li a) css styling ain't showing on the browser unless i move them to class(.header-main-nav ul li) what might be the problem???@dani cross

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

      My code is similar so am wondering what i might have done differently

  • @mickentquenncuizon7785
    @mickentquenncuizon7785 8 месяцев назад +1

    Thank you so much Danni. I've learned a lot from you. :)
    Can you explained me about this?
    body ::after {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: url(../img/fb-color.png) url(../img/gmail-color.png);
    }
    what is the difference if I don't put this? hehe. Thank you again. :)

    • @Dani_Krossing
      @Dani_Krossing  8 месяцев назад +1

      It preloads the images 🙂 so if you dont add this, the images will “blink” the first time you hover your cursor on them.

    • @mickentquenncuizon7785
      @mickentquenncuizon7785 8 месяцев назад

      Thank you so much Danni :)@@Dani_Krossing

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

    First here, from Ghana

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

    Hey Dani, when I try to change the cursor to a pointer it doesn’t change. Any ideas why?

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

      Try clearing the “cached images and files” from your browser, and then refresh your page. This is often the culprit whenever CSS changes doesn’t wanna work. 🙂
      You clear the images and files in the same place where you clear your browser history (Ctrl + H). Just make sure you only tick on the images and files, so you don’t delete your browser history and passwords as well, and make sure you select “all time”. 🙂