Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems with editing bootstrap navbar

Contributor ,
Jun 23, 2022 Jun 23, 2022

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.

 

 

234
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Jun 23, 2022 Jun 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. 

Translate
Contributor ,
Jun 23, 2022 Jun 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 23, 2022 Jun 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 & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 23, 2022 Jun 23, 2022
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines