How to Create Navbar in HTML and CSS

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • How to Create Navbar in HTML and CSS, How to Make Navbar in HTML and CSS, How to Create Navigation Bar in HTML and CSS, How to Make Navigation Bar in HTML and CSS, Simple Navbar HTML CSS
    Click For More: / @codehal
    Website:
    codehalweb.com/
    -------------------------------------------------------------------
    Get Source Code from here and support me ❤
    buymeacoffee.c...
    Get Source Code by PayPal
    ko-fi.com/s/df...
    🔔 Subscribe Now!
    / @codehal
    Related Videos:
    Responsive Navbar HTML CSS | Responsive Animated Navigation Bar
    • Responsive Navbar HTML...
    Animated Navigation Bar in HTML and CSS | Menu Hover Animation Effects
    • Animated Navigation Ba...
    Animated Navigation Menu Bar using HTML CSS | Animated Tabs with Indicator
    • Animated Navigation Me...
    How to Create an Active Nav Link on Scroll using HTML CSS and Javascript | Active Menu Class
    • How to Create an Activ...
    Download Image & Start Project From Scratch:
    drive.google.c...
    Image Sources:
    Image created by freepik
    www.freepik.co...
    Codehal
    -------------------------------------------------------------------
    #css #cssanimation #csseffect #codehal
    -------------------------------------------------------------------
    Disclaimer video is for educational purpose only. Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.

КОМЕНТАРІ • 126

  • @lynn5804
    @lynn5804 5 місяців тому +7

    At first, it didn't work for me and then I realized I had missed some of the steps lol. It actually works, making my assignment nice. Good video

  • @IceCrownOne
    @IceCrownOne 6 місяців тому +5

    i did the same code but i cant get that little white line

  • @ogunikitty
    @ogunikitty 9 місяців тому +3

    Thanks my guy. Helping me land clients as a beginer

  • @DamienLavizzo
    @DamienLavizzo 5 місяців тому +2

    For some reason when I use "space-between", it puts the elements at opposite ends of the page width.

    • @aV5d9nlUBQ9
      @aV5d9nlUBQ9 4 місяці тому +2

      You might've forgotten to add 'box-sizing: border-box;' property to the * tag. At least, it was the reason in my case.

    • @DamienLavizzo
      @DamienLavizzo 4 місяці тому +1

      @@aV5d9nlUBQ9 thanks for this! As soon as I’m at the computer I’ll double check and see if that fixes it!

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Рік тому +6

    So simple, so awesome.

  • @techobi2137
    @techobi2137 7 місяців тому

    THANKSS, this video is very nice

  • @pongatweaks
    @pongatweaks 8 місяців тому

    Thank you so Much i learn it

  • @rrkredits
    @rrkredits 4 місяці тому

    Super

  • @raedbouguerra1553
    @raedbouguerra1553 8 місяців тому

    nice video thx, btw what's the vs code theme ?

  • @ahmedghallab5342
    @ahmedghallab5342 7 місяців тому

    شكرا Thank it was helpful💯💯

  • @montalesmarktitusr.4930
    @montalesmarktitusr.4930 Рік тому +18

    the background image is not showing

    • @Ana_.H
      @Ana_.H 9 місяців тому +6

      You have to put the image and project in the same file

    • @Jbrahim1
      @Jbrahim1 5 місяців тому

      ​@@Ana_.H like how mine not showing too.
      They are in the same file

    • @Melissa0V
      @Melissa0V 4 місяці тому

      ​​@@Jbrahim1 Maybe your invoking it the wrong way.

    • @artwork-studios
      @artwork-studios 2 місяці тому

      ​@@Melissa0Vcould be or could be no browser support

  • @TheRocketFlyerMAX
    @TheRocketFlyerMAX 9 місяців тому

    best tutorial ever thanks so mucj

  • @tahalamkahkah-ok9ry
    @tahalamkahkah-ok9ry Рік тому

    you are the best continue❤❤

  • @kaan9147
    @kaan9147 7 місяців тому

    hocam selamlar aynı sayfa içinde iki farklı yapı oluşturdum body etiketlerindeki çakışmayı nasıl önlerim (important ?)

  • @muhdkhairulamirinum3985
    @muhdkhairulamirinum3985 4 місяці тому

    TQ. very helpful

  • @dkebun7577
    @dkebun7577 8 місяців тому

    Hi there. Instead of words, how can we replace with a diagram? Like a "home logo" to make it nice looking

  • @Blayke
    @Blayke Рік тому +2

    At 2:35, what part of the css file moves the items to the top right of the screen? I copied what you did but it stayed in the top left

    • @hafidz2698
      @hafidz2698 Рік тому

      He used display:flex and justify-content: space-between
      Did you ensure that the logo and the nav bar are separate from each other?

    • @arutoki9810
      @arutoki9810 4 місяці тому

      @@hafidz2698 How can they be separated?

  • @FanMade522
    @FanMade522 Рік тому +1

    Nice!!!

  • @l.e.221
    @l.e.221 11 місяців тому +1

    Fantastic video for me as a beginer. I followed your instructions an copied all the same way. Instead of your 5 links I made 12. In this case my links can't be seen all. There ist a lot of space between Logo and first links, but the last 2 links are outside the page. How can I solve the problem?

    • @l.e.221
      @l.e.221 11 місяців тому +4

      I found the mistake. in the css I forgot the "*" in the first row. now it works.

  • @omarwalied-yr8yx
    @omarwalied-yr8yx Рік тому +1

    I'm from Egypt ❤

  • @henoksebsibe5846
    @henoksebsibe5846 9 місяців тому

    wow simply wow

  • @dakwahvibes
    @dakwahvibes 4 місяці тому

    thanx broo

  • @TyroneEntertainingJoseph
    @TyroneEntertainingJoseph 9 місяців тому

    Just subscribed

  • @kubalu4835
    @kubalu4835 8 місяців тому

    hey its all working but theres one problem i dont see the content i implemented into the page

  • @malekalbawaih
    @malekalbawaih Рік тому

    what to put instead of Logo to show my own logo ??

    • @AstaZephyr
      @AstaZephyr 5 місяців тому

      i think you just put your image by using

    • @Vortex03
      @Vortex03 Місяць тому

      hi! did you figure out how to do it? i'm having the same problem

  • @adrianonocanada
    @adrianonocanada Рік тому

    very nice 6 min !!!

  • @ohwen
    @ohwen 9 місяців тому

    this shit goes hard asf

  • @ayush1344
    @ayush1344 Рік тому

    bro responsive kasa banana ka woh bhi batate

  • @Adidinamite
    @Adidinamite 6 місяців тому +1

    haha bro nice joke with the only

  • @tandung03
    @tandung03 Рік тому

    First❤

  • @efuz_master
    @efuz_master 7 місяців тому

    why in navbar a margin-left written why padding-left was not written

    • @TLOZ1986
      @TLOZ1986 6 місяців тому

      Why padding?

  • @jabrama3712
    @jabrama3712 29 днів тому +2

    Yo bro, that was so fucking good and easy to understand and that music made it so much interesting, I was vibing the whole tutorial 😂

  • @carlosdejesus7109
    @carlosdejesus7109 Рік тому +16

    Thanks for sharing your knowledge! Very helpful and easy to understand.

  • @tommypool-xd5np
    @tommypool-xd5np 6 місяців тому +3

    Can I ask about the first input on the .css stylesheet.
    I see a lot of people that start with * { and set the margin, padding to 0 and box sizing to border box. Why is this? Is there anywhere that explains this?
    (I am very new to this!)

    • @beko1603
      @beko1603 5 місяців тому +5

      The * selector targets all elements on the page. Setting margin and padding to 0 and box-sizing to border-box ensures consistent spacing and sizing, making styling more predictable across different browsers. It's a common practice for CSS resets or normalizations to establish a baseline for styling.

    • @tommypool-xd5np
      @tommypool-xd5np 5 місяців тому

      @@beko1603 Thank you very much for the explanation! :)

  • @giorgimtsituri7826
    @giorgimtsituri7826 Рік тому +16

    I am learning a lot from your videos, thanks

  • @not_mada
    @not_mada 5 днів тому

    For some reason, the image wouldn't scale properly when it was 100vh but I changed it to 80vh and it now works... I'm thinking that this is maybe because of the device that I'm using? I'm not so sure as to why it did that

  • @ganeshgupta9692
    @ganeshgupta9692 Рік тому +3

    Finally he know He have a channel 😅btw very Gud ❤

  • @DecodeReels
    @DecodeReels Рік тому +1

    Love from India ❤sir please work hole this in mobile please because import URL didn't show in mobile app reaplit

  • @abhinavsreekumar4703
    @abhinavsreekumar4703 Рік тому +4

    Can the logo be moved further to the left? Amazing content❤

  • @Victusu
    @Victusu 3 місяці тому +1

    which vs code theme is that

  • @JoséAugustoR.Santos
    @JoséAugustoR.Santos 2 місяці тому

    can someone please explain to me what this part means exactly?
    .navbar a::before

  • @AbdulHadi-pn8xo
    @AbdulHadi-pn8xo 3 дні тому +1

    thanks worked on first try!

  • @jpedrothejo
    @jpedrothejo 3 місяці тому

    (makes window smaller)
    "wait where are the other options"

  • @aishaShwehna
    @aishaShwehna 10 місяців тому +1

    Thank You..
    🙏

  • @gamerjohnbot
    @gamerjohnbot 11 місяців тому +1

    my navagation bar text is aligned to the left

  • @NoBummer
    @NoBummer 5 місяців тому

    swag swag swag poggers pogg i love swag i love poggers

  • @shaddamsayyid
    @shaddamsayyid Місяць тому

    can u make it with explaination??

  • @TLOZ1986
    @TLOZ1986 6 місяців тому

    Responsive değil

  • @acidxop8411
    @acidxop8411 2 місяці тому

    can someone tell me why did he use z -index and why is the result same even after using it?

    • @srt312
      @srt312 2 місяці тому

      It is used to blend the background image with the navbar...thats why you can spot the image at the back of the text in the navbar

  • @cristianrioja9844
    @cristianrioja9844 Місяць тому +1

    Gooooood

  • @Auynim
    @Auynim 2 місяці тому

    hey so the visual code wont let me type "transition: .3s;" on the line 54 in stylecss
    edit: i try on ".navbar a:hover::before" and it worked

  • @carolinabenitez2121
    @carolinabenitez2121 5 місяців тому

    How can I fix this when I use on mobile device? It doesn’t look right when i use a mobile device

  • @wahyuramadhanaz-zuhri1673
    @wahyuramadhanaz-zuhri1673 Місяць тому

    Thanks, you got an instant like and subscribe for the straighforwars content!

  • @KOSRedacted
    @KOSRedacted 9 місяців тому

    When I do the background thing it's it showing up I have it exactly like you have it, help?

  • @AbdallahMaikano-np4jy
    @AbdallahMaikano-np4jy 4 місяці тому

    bro please where do you get those nice background pictures from

  • @sweetybaghwar2367
    @sweetybaghwar2367 Місяць тому

    It was really good. Simple and clean. Thank you.

  • @cetlan404
    @cetlan404 Рік тому +1

    Great video, great tutorial. Thanks bro

  • @curon_licentia
    @curon_licentia 5 місяців тому

  • @elunico10
    @elunico10 Рік тому +1

    good navbar bro
    wouldn't be easier to use a border or outline to the a's?

  • @frankg2579
    @frankg2579 Місяць тому

    what does the * in the stylesheet refer to?

  • @leonciojrcoronado2733
    @leonciojrcoronado2733 8 місяців тому

    Sir what is the content? content: " "; ?

  • @hilbrambaihaki6851
    @hilbrambaihaki6851 Рік тому

    Bro make best logo in 6m than me on my 2 hours

  • @rosmelliam2510
    @rosmelliam2510 11 місяців тому

    Can anyone please tell me what theme he is using ?

  • @ClimbToZenith
    @ClimbToZenith 6 місяців тому

    you are the best continue❤❤

  • @berkoo5497
    @berkoo5497 6 місяців тому

    Short Video, AWSOME Job !! Thanks

  • @zelalemkebede-gg4ui
    @zelalemkebede-gg4ui 8 місяців тому

    Nice worj🎉❤❤❤

  • @Miyeruuu
    @Miyeruuu 5 місяців тому

    how do you add text below?

  • @CartVista-kb4mw
    @CartVista-kb4mw 7 місяців тому

    where do you get th image

  • @TLOZ1986
    @TLOZ1986 6 місяців тому

    Its not responsive

    • @projackson355
      @projackson355 6 місяців тому

      Did u add a link in the # place?

  • @guchfun
    @guchfun 7 місяців тому

    Thank you for sharing this tutorial! It's nice looking and pretty straightforward. I was going to use Bootstrap but I may just code it myself with a little extra JS thrown in for small animation touches. Next need to find a way to link a navbar file to the homepage so I can make changes in just one place.

  • @qasimsk09
    @qasimsk09 10 місяців тому

    Which theme are u using

  • @relaxsoundT68
    @relaxsoundT68 4 місяці тому

    I love it bro😍😍

  • @Lorance75
    @Lorance75 6 місяців тому

    thanks a lot bro

  • @adfsddsadsadq3323
    @adfsddsadsadq3323 Рік тому

    Hello, I have a question: how can I make the strip fly out on the other side?

  • @sergiumihaitodireanu2901
    @sergiumihaitodireanu2901 6 місяців тому

    Wow, thank you!!❤

  • @1millionlabs
    @1millionlabs 9 місяців тому

    thanks codehal for this amazing tuotrial

  • @Sahil_Hansda_official
    @Sahil_Hansda_official Місяць тому

    Good job

  • @nayeemhossain770
    @nayeemhossain770 Рік тому

    Awesome 😍
    2nd from Bangladesh 💝

  • @danielthang1075
    @danielthang1075 Рік тому +1

    Just love it❤

  • @seahmadnail
    @seahmadnail 10 місяців тому

    Very nice

  • @Osama-Abdelsalam
    @Osama-Abdelsalam Рік тому

    Theme name?

  • @Nanashi-rq7lk
    @Nanashi-rq7lk 10 місяців тому

    Nice tutorial

  • @ClimbToZenith
    @ClimbToZenith 6 місяців тому

    tnx

  • @Snap-Tutorials
    @Snap-Tutorials Рік тому

    great

  • @GovaObito
    @GovaObito 8 місяців тому

    Ich liebe dich

  • @charlestoneoyoo
    @charlestoneoyoo Рік тому

    woow, thank you...this was a good practice project

  • @xafuu7286
    @xafuu7286 Рік тому

    ada course nya ga bang

  • @eagle4226
    @eagle4226 Рік тому

    thanks man

  • @sixinco
    @sixinco Рік тому

    thank you

  • @CodeCrafte_r
    @CodeCrafte_r Рік тому

    Which website are you use for pictures?

  • @atikadewi1118
    @atikadewi1118 Рік тому

    Good job, thanks

  • @Abdelillah-27
    @Abdelillah-27 Рік тому

    thank you so much bro

  • @luther-pd5uy
    @luther-pd5uy 11 місяців тому

    music = instant dislike