Skip to main content
Inspiring
June 23, 2022
Answered

Problems with editing bootstrap navbar

  • June 23, 2022
  • 1 reply
  • 279 views

I am trying to make one of the categories a dropdown. The navbar already includes one dropdown. I understand the code enough to copy and paste the code, but I am getting an error message. Apparently the coding only wants me to have one menu item as a dropdown. My site is large enough that I need more than one. Please advise if this can be done.

 

 

    This topic has been closed for replies.
    Correct answer default0vaokg78cv42

    I changed the label in the html code from navbarDropdown1 to navbarDropdown2, for the second drop down item I created. That eliminated any html errors and looks good, so far. 

    1 reply

    default0vaokg78cv42AuthorCorrect answer
    Inspiring
    June 23, 2022

    I changed the label in the html code from navbarDropdown1 to navbarDropdown2, for the second drop down item I created. That eliminated any html errors and looks good, so far. 

    Nancy OShea
    Community Expert
    Community Expert
    June 23, 2022

    That's right.  Unlike re-usable classes which can be used many times, IDs are unique identifiers which cannot be duplicated on the same document. 

    Glad you got it sorted. 🙂

     

     

    Nancy O'Shea— Product User & Community Expert
    Inspiring
    June 23, 2022

    I'm also trying to learn CSS grid and flexbox. Not easy!