Bootstrap 5 Navbar Link Underline on Hover

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2022
  • 👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). I'll help you master the latest tech here:
    👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Discord: all my courses have a private Discord where I actively participate
    🔔 Email newsletter (BIG update soon): email.bytegrad.com
    0:00 Solution
    #bootstrap5 #bootstrap #bootstrapnavbar #bootstraptutorial #webdevelopment #coding #programming
  • НаукаНаука

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

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

    Hi, mastering CSS is critical as a front-end developer: www.udemy.com/course/professional-css/?referralCode=4C3C08E82629E6B15752
    Also, mastering JavaScript is critical if you want to be a modern, professional developer: www.udemy.com/course/professional-javascript-course/?referralCode=0C1D5752923168BC87C2

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

    Thank you,Really Help full for me

  • @zinebtlaiha9573
    @zinebtlaiha9573 10 месяцев назад +2

    Thanks again. Your tutorials are very helpful

  • @artemblinkov2241
    @artemblinkov2241 7 месяцев назад +3

    I have a link with a dropdown menu, and for some reason, it gets double underline which looks weird. Any suggests on how to fix it? Thanks for the video, by the way!

  • @sajidakhan9866
    @sajidakhan9866 9 месяцев назад +1

    thank you so much

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

    Thank you so much

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

    iu use bootsrap nav bar and this not working for this but the color is changing that is already in the bootsrap so underline isnt working for me what can i do

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

    Your explanation is better than my teacher and it's more easier to understand

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

    Thank very much it helps me a lot.make more videos on different topics.Radhe-Radhe.

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

    Thank you!!!!

  • @Umerkhan2.0
    @Umerkhan2.0 Год назад +1

    thank you so much Sir, good job.

  • @MagnusAnand
    @MagnusAnand 11 месяцев назад +2

    Two comments:
    1. In small screens it doesn't look good because the underline covers all the bar and not just the text. Can you check this?
    2. Can't you just get a similar effect with the nav-underline class?

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

      Just apply a @media rule:
      @media (min-width: 768px) {
      .nav-link:hover {
      /* Styles for hover state on larger screens */
      }
      }
      Inside that insert all your code for the hover effects.

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

      By the way you will need to change the 768px to 1000px

    • @shangharshadhikari8319
      @shangharshadhikari8319 9 месяцев назад +1

      To solve this issue, you can add "d-inline-block" to the element, which means the underline will cover the width same as width of text. Don't forget to add Bootstrap cdn. Thank me later!!.

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

    Why hover effect is not working for a tag

  • @increment-
    @increment- Год назад +1

    How can I only apply the hover effect on large size screens, not on tablets or smaller screens.
    Thanks for the video!

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

      Just apply a @media rule:
      @media (min-width: 768px) {
      .nav-link:hover {
      /* Styles for hover state on larger screens */
      }
      }
      Inside that insert all your code for the hover effects.

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

      By the way you will need to change the 768px to 1000px

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

    Great 🙏

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

    This lg device Good,But sm device over width issue ,That one reason

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

    the transition is not working as expected, dont know why, everything else works perfectly

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

    its not working for me, i will just have 1 long underline under the navbar

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

      Make sure you used position: relative too on the .nav__link (so the one without ::after)

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

      @@ByteGrad can i send you my code as a pastebin ?

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

      @@ByteGrad dunno what i did wrong first time, but now its working! great tutorial :)

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

      @@zulkiizsukesada4984 Great!

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

      Thanks! that worked for me.@@ByteGrad

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

    What if i want to show that underline on the active state (.nav-link.active) ?

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

      No worries i found it - .nav-link.active::after { opacity: 1; }