How to Create A Carrd.co Mobile Responsive Navbar

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

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

  • @maiakindlein7405
    @maiakindlein7405 10 месяцев назад +5

    So helpful! Thank God I've found your channel!! 🙏🙏

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

      Thanks!

  • @danielegargano1246
    @danielegargano1246 День назад +1

    Grest content.Thanks a lot!

  • @MitchWinstead-g1c
    @MitchWinstead-g1c 11 месяцев назад +2

    Nice video, really helpful! I've got a question though. Everything worked well, but I'm trying to find out how to display this dropdown on all my pages and how to enlarge the text.

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

      Thanks. You just add under the style > nav the:
      font-size: 26px; you can under: /*-font-family: var(--main-font);*/ to be easier to identify. You can use instead of 26px the size you want.

    • @MitchWinstead-g1c
      @MitchWinstead-g1c 10 месяцев назад

      @@webdoze I've made progress with my website, thank you it's coming along nicely. However, I'm currently facing an issue with getting the menu to close upon clicking the selection. I appreciate your continued assistance! Additionally, I'd appreciate any insights you might have on resolving an issue where a black bar slides over the top of my banner when scrolling. Thanks in advance for your help with this.

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

      Hi! I have a solution to this.
      After the nav bar you need to put a #control then select the type to "HEADER MARKER" so that everything before this element will remain visible regardless of which section is visible.
      example
      [Nav Bar]
      #control (Header End)

  • @maggieeats
    @maggieeats 11 дней назад

    Thank you for this! Super userful. One question - I can't figure out how to bold my font and add spacing between the letters. I added --mbm-main-font: 'Raleway', heavy; and --mbm-letter-spacing: 2px; but those don't show up. Any suggestions?

  • @s-kltch
    @s-kltch 4 месяца назад +1

    Thank you! But i have a question; When I go to change the font (I want it to be Inter) it does not work... I have tried various methods, and even tried copying your example by using 'Abril Fatface' . Nothing seems to work... Any suggestions? Awesome video, thank you again!

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

    So helpful man! Do more videos on Carrd!

  • @jcx7779
    @jcx7779 4 месяца назад +1

    This is helpful! Thank you!

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

    Very good video, thank you. I have a problem on the mobile version, as each time I select a page from the menu and navigate to it, the dropdown menu remains deployed. It should retract when I move to another page, do you know how I can fix this? i Also have the problem with the fonts. I can´t change it. Thanks a lot

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

      Thanks. Not sure what is happening you need to debug it with the browser tools to see if you find out more. May e something is blocking it.

    • @emilieturcat4491
      @emilieturcat4491 4 месяца назад +1

      Hello,
      I’ve just used this tutorial on my carrd site. I had the same problem with the font and the drop down menu.
      This is what I did to fix this.
      I removed [/*-] and [*/] on the line /*-font-family: var(--main-font);*/ (in the /* Navigation Styling */ part).
      I replaced [//¬] by [/*] and added [*/] to the last query at the bottom, like this :
      /* Close menu on menu item click */
      Hope this will help !

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

    The menu only works on the home page. On secondary pages like 'About', when I go to mobile I can see the hamburger menu but when i click on it nothing happens.

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

      I think it has something to do with the eventListener for the close button. @webdoze can we modify this code to remove the EventListener after it's clicked?
      document
      .querySelector(".close-button")
      .addEventListener("click", function () {
      document.getElementById("menu-toggle").checked = false;
      });
      document
      .querySelector(".close-button")
      .addEventListener("click", function () {
      document.getElementById("menu-toggle").checked = false;
      });
      // Close menu on menu item click
      document.querySelectorAll(".menu a").forEach((link) => {
      link.addEventListener("click", function () {
      document.getElementById("menu-toggle").checked = false;
      });
      });

    • @mikedunlapdesign
      @mikedunlapdesign Месяц назад +1

      I'm am definately not a developer, but I think it has something to do with the eventlisteners. I noticed that these two lines are duplicated:
      document
      .querySelector(".close-button")
      .addEventListener("click", function () {
      document.getElementById("menu-toggle").checked = false;
      });
      document
      .querySelector(".close-button")
      .addEventListener("click", function () {
      document.getElementById("menu-toggle").checked = false;
      });

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

      @ thanks I’ll try that!

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

      Hi! I have a solution to this.
      After the nav bar you need to put a #control then select the type to "HEADER MARKER" so that everything before this element will remain visible regardless of which section is visible.
      example
      [Nav Bar]
      #control (Header End)

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

      Hi! I have a solution to this.
      After the nav bar you need to put a #control then select the type to "HEADER MARKER" so that everything before this element will remain visible regardless of which section is visible.
      example
      [Nav Bar]
      #control (Header End)

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

    quick question how can i thicken the text on the navbar

  • @irineoskostadinov4324
    @irineoskostadinov4324 4 месяца назад +1

    THANK YOU

  • @devanshsingh2878
    @devanshsingh2878 7 месяцев назад +1

    I'm thankful to you

    • @webdoze
      @webdoze  7 месяцев назад +1

      Thanks!

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

    This is cool! For some reason the dropdown menu gets hidden behind my other containers below it on the page. Do you know how to avoid this?

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

      Hi! I have a solution to this.
      After the nav bar you need to put a #control then select the type to "HEADER MARKER" so that everything before this element will remain visible regardless of which section is visible.
      example
      [Nav Bar]
      #control (Header End)

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

    Legend!

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

      Thanks!

  • @ITSpotykaKlienta
    @ITSpotykaKlienta 4 месяца назад +1

    pro!

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

      Thanks. Hope it was for me 😀

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

    How to add links? :/

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

      The ul and li section has the links. You can also ask chatgpt to inser them for you if you are a beginner.

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

    Hello, great tutorial, I used the code from your website and got it working perfectly. I have a small question though, I want to use a custom font for the menu, do you know how can I do this? I managed to use custom using method 2 of this video: ruclips.net/video/sctl4iZEIqo/видео.html thanks! (i basically have an invisible embed calling out the font hosted in a cloud platform) (i tried to replace arial with my font family:custom font but it didnt work)

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

      Thanks. You should uncomment the font thing in css in 2 places. You have the details here also ruclips.net/video/oz6TxBO5WQo/видео.htmlsi=W1_hvn9V6OCBdNP2

  • @takeascroll.store.
    @takeascroll.store. 10 месяцев назад +1

    helpful video thank you so much!!

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

    Nice video, really helpful! I've got a question though. Everything worked well, but I'm trying to find out how to display this dropdown on all my pages and how to enlarge the text.

    • @takeascroll.store.
      @takeascroll.store. 10 месяцев назад +1

      same thought ..

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

      Hi! I have a solution to this.
      After the nav bar you need to put a #control then select the type to "HEADER MARKER" so that everything before this element will remain visible regardless of which section is visible.
      example
      [Nav Bar]
      #control (Header End)