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

แชร์
ฝัง
  • เผยแพร่เมื่อ 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 TH-cam 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

ความคิดเห็น • 100

  • @lorizonval
    @lorizonval 11 หลายเดือนก่อน +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!!

  • @fissionchips223
    @fissionchips223 9 หลายเดือนก่อน +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!

  • @xdsumi
    @xdsumi 2 หลายเดือนก่อน +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.

  • @NexusNews-yd6if
    @NexusNews-yd6if 3 หลายเดือนก่อน +5

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

  • @dolittlediehard1670
    @dolittlediehard1670 10 วันที่ผ่านมา

    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.

  • @DejanPavlovic-tu8vj
    @DejanPavlovic-tu8vj 9 หลายเดือนก่อน +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

  • @davidspot191
    @davidspot191 7 หลายเดือนก่อน

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

  • @bogdanapache8263
    @bogdanapache8263 ปีที่แล้ว +1

    extremely useful tutorials! thank you for your work

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

  • @arshad1781
    @arshad1781 ปีที่แล้ว +2

    Thanks for sharing free knowledge 🙂

  • @sabithapa4776
    @sabithapa4776 ปีที่แล้ว

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

  • @MwishaLudack
    @MwishaLudack 8 หลายเดือนก่อน

    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.

  • @user-yu3yd8gt5f
    @user-yu3yd8gt5f 2 หลายเดือนก่อน +2

    good work..i have learned alot

  • @denhamk
    @denhamk 3 หลายเดือนก่อน

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

  • @user-ly6gg8vx6c
    @user-ly6gg8vx6c ปีที่แล้ว

    This is so helpful for me , thank
    you.

  • @romaneestime5004
    @romaneestime5004 ปีที่แล้ว

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

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

  • @kumi_de
    @kumi_de 11 หลายเดือนก่อน +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!

    • @Dani_Krossing
      @Dani_Krossing  11 หลายเดือนก่อน +2

      I'm glad you enjoy my videos ☺

  • @travismounsteven3486
    @travismounsteven3486 ปีที่แล้ว +1

    Your channel deserves a lot more love

  • @naweendanushka3358
    @naweendanushka3358 ปีที่แล้ว

    Great video many thanks ..

  • @Kennethlumor
    @Kennethlumor 7 หลายเดือนก่อน

    Sir God bless you so much for impacting knowledge in me

  • @santiagobenjamin4752
    @santiagobenjamin4752 หลายเดือนก่อน +1

    you're the goat for sharing all this

  • @legendaryempire6507
    @legendaryempire6507 2 หลายเดือนก่อน

    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.

  • @pseuda
    @pseuda ปีที่แล้ว

    This class is superb!

  • @holiwis243
    @holiwis243 10 หลายเดือนก่อน +1

    Thank so much! ❤

  • @OmarTaha-pj8vv
    @OmarTaha-pj8vv 2 หลายเดือนก่อน

    Your cousrses are awesome!

  • @guessabbenchohra4661
    @guessabbenchohra4661 15 วันที่ผ่านมา

    enjoyin your cours keep it up

  • @jamloop3140
    @jamloop3140 11 หลายเดือนก่อน +1

    thank you sir

  • @diakokhalandi1115
    @diakokhalandi1115 7 หลายเดือนก่อน

    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?

  • @maryemnidcharouq3599
    @maryemnidcharouq3599 ปีที่แล้ว

    THANK YOUU SOO MUCH

  • @DavidTheITGuy.
    @DavidTheITGuy. ปีที่แล้ว

    Well done mn

  • @ezraamoako4166
    @ezraamoako4166 ปีที่แล้ว +1

    First here, from Ghana

  • @kieranwentworth
    @kieranwentworth ปีที่แล้ว

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

  • @rayaawilliams9203
    @rayaawilliams9203 10 หลายเดือนก่อน

    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?

  • @patrickmclaughlin6013
    @patrickmclaughlin6013 3 หลายเดือนก่อน

    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?

  • @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 9 หลายเดือนก่อน +1

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

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

  • @dumitruperciun309
    @dumitruperciun309 10 หลายเดือนก่อน

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

  • @sandeepnepal4467
    @sandeepnepal4467 6 หลายเดือนก่อน

    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.

  • @mihneapria3398
    @mihneapria3398 10 หลายเดือนก่อน

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

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

  • @valrotkier
    @valrotkier 9 หลายเดือนก่อน

    What about changing the hover image for the logo?

  • @ardavural4649
    @ardavural4649 4 หลายเดือนก่อน +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.

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

  • @marcelpiotrowski8849
    @marcelpiotrowski8849 ปีที่แล้ว

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

  • @TheNextTechG
    @TheNextTechG 3 หลายเดือนก่อน

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

  • @alexvang2579
    @alexvang2579 8 หลายเดือนก่อน

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

  • @kennethharris-official5661
    @kennethharris-official5661 9 หลายเดือนก่อน

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

  • @martin54123
    @martin54123 ปีที่แล้ว

    Sorry a newbie question but how do I watch the HTML & CSS TH-cams 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!😂😂😂

  • @sudeepkarki4918
    @sudeepkarki4918 ปีที่แล้ว

    Waiting for next video 🤧

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

  • @meahtoday
    @meahtoday 3 หลายเดือนก่อน

    Do we STILL need to use LISTS in navs?

    • @Dani_Krossing
      @Dani_Krossing  3 หลายเดือนก่อน

      You CAN create menus without using , however it is strongly recommended to use lists.

  • @Kennethlumor
    @Kennethlumor 7 หลายเดือนก่อน

    Please can you add a slide bar to this navbar

  • @python5933
    @python5933 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน +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 9 หลายเดือนก่อน

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

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

  • @Klipukai
    @Klipukai หลายเดือนก่อน

    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?

  • @nihelmariam5120
    @nihelmariam5120 7 หลายเดือนก่อน

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

    • @user-hy4ws2ex9g
      @user-hy4ws2ex9g หลายเดือนก่อน

      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 10 หลายเดือนก่อน

    the anchor doesnt need a closing tag.

    • @Dani_Krossing
      @Dani_Krossing  10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน

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

  • @bcd3321
    @bcd3321 8 หลายเดือนก่อน

  • @Stoney_Eagle
    @Stoney_Eagle ปีที่แล้ว

    First 🤣

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว +1

      Fir... arh gosh darn it!

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว +1

      HAH you are second!

    • @Stoney_Eagle
      @Stoney_Eagle ปีที่แล้ว

      @@Dani_Krossing noooooo... so close 😱

  • @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 9 หลายเดือนก่อน

    Man made Columbian flag :)

  • @MsCellobass
    @MsCellobass 5 หลายเดือนก่อน

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

    • @Dani_Krossing
      @Dani_Krossing  5 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

    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 4 หลายเดือนก่อน

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

  • @mickentquenncuizon7785
    @mickentquenncuizon7785 7 หลายเดือนก่อน +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  7 หลายเดือนก่อน +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 7 หลายเดือนก่อน

      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”. 🙂