# Dropdown & hamburger not working

**URL:** https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586
**Category:** Beginners
**Created:** [August 26, 2021, 9:01pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586 "2021-08-26T21:01:32Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 26, 2021, 9:01pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/1 "2021-08-26T21:01:32Z")

</div>

My `mcgraphics.us/indexNew.html` nav dropdown & hamburger are not working. Help please.

```auto
<nav class="navbar navbar-expand-lg navbar-dark pb-lg-0 pt-lg-0 position-sticky"> 
                <div class="container"> 
                    <a href="#graphic" target="_pg_blank" class="link-primary">Graphic & Web Design</a>
                    <ul class="align-items-lg-center flex-row ms-auto me-2 me-lg-0 navbar-nav order-lg-2"> 
                        <li class="d-none d-sm-block nav-item"> 
</li>
                        <li class="ms-2 nav-item"> 
</li>                         
                    </ul>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown-3" aria-controls="navbarNavDropdown-3" aria-expanded="false" aria-label="Toggle navigation"> 
                        <span class="navbar-toggler-icon"></span> 
                    </button>
                    <div class="collapse navbar-collapse " id="navbarNavDropdown-3"> 
                        <ul class="navbar-nav "> 
                            <li class="nav-item"> 
                                <a class="nav-link pb-lg-4 pe-lg-3 ps-lg-3 pt-lg-4 text-dark" href="#graphic">Layout & Design</a> 
                            </li>                             
                            <li class="nav-item dropdown">
                                <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                    <li>
                                        <a class="dropdown-item" href="https://amzn.to/2OCHayV">My Amazon History Tees </a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item" href="https://www.funkyhistory.com">History Portraits & Timelines</a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item" href="https://mcgraphics.us/music">Iconic Musicians</a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item" href="https://mcgraphics.us/cool">Fun Illustrations</a>
                                    </li>
                                    <li>
                                        <a class="dropdown-item" href="https://mcgraphics.us/mad">Sample Page</a>
                                    </li>
                                </ul>

```

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 27, 2021, 10:10am UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/2 "2021-08-27T10:10:17Z")

</div>

Hi @kat,  
A few things:

1. the code you pasted above is malformed - I’m guessing it was just a cut-and-paste error, but you might want to check.
2. using the `navbar-dark` class assumes that your navbar will be a dark color, so the hamburger is styled white. It is actually there on the page, it is just the same color as the navbar
3. For your inside drop down, you don’t have a triggering link like:  
`<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">Dropdown link </a> ` above your dropdown-menu.  
Cheers,  
Bob

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 27, 2021, 8:58pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/3 "2021-08-27T20:58:32Z")

</div>

Went line by line against one of your new BTS theme directory htmls in VSC moving the code until the dropdown was fixed. A brutal way to do it, but it worked.  
Next trying to get the navbar dark and text white, do link hovers, clean up text and maybe do a fade-in interaction on the banner text from one of your tutorials. Onward!  
Thanks greatly for you help, Rob.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 28, 2021, 9:38pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/4 "2021-08-28T21:38:49Z")

</div>

[https://mcgraphics.us/indexNew.html](https://mcgraphics.us/indexNew.html)  
`a.nav-link:hover { color: #c24e8b;}` doesn’t work. I tried nav-item:hover, a:hover, adding more & less specificity & in vsc and in PG through the create class panel.  
`.h3:hover { color: #c24e8b;}` works fine  
Suggestions please

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 28, 2021, 9:50pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/5 "2021-08-28T21:50:18Z")

</div>

So Bootstrap has a crazy number of `!important` declarations. In this case, the `text-white` class has an important. So, only choice is to use something like `a.nav-link:hover { color: #c24e8b !important;}`.  
Cheers,  
Bob

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 29, 2021, 12:08am UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/6 "2021-08-29T00:08:25Z")

</div>

Works perfectly. But does this mean that adding css transforms on hover will be challenging?

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 29, 2021, 9:18am UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/7 "2021-08-29T09:18:29Z")

</div>

It all depends on the CSS property and other classes already present. The browser/Pinegrow DevTools are a great asset to determine if you need !important.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 29, 2021, 4:41pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/8 "2021-08-29T16:41:27Z")

</div>

> [@RobM](#):
>
> Pinegrow DevTools

Specific PG panels? If not, do you mean checking DevTools when you open a PG window in the browser?

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 29, 2021, 7:22pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/9 "2021-08-29T19:22:08Z")

</div>

Both the DevTools in Pinegrow and the Browser. The DevTools when you right-click on the pinecone and select inspect or the DevTools in the browser. Both will let you see if there is a rule with ‘!important’ in it. You can also see it in the Styles panel if you open the rules from Bootstrap that are hidden by default (see the grey text in the panel when you have an element selected).

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 29, 2021, 8:35pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/10 "2021-08-29T20:35:50Z")

</div>

> [@RobM](#):
>
> The DevTools when you right-click on the pinecone

Pinecone DevTools seems to be interacting with the PG interface rather that my open PG page.

 ![PG_DevTool_pinecone](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/c/c3da14d0857128b01a84436da2204453a3447a23.jpeg)

---

<div class="post-metadata">

### Author: ![TechAkayy](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@TechAkayy](https://forum.pinegrow.com/u/TechAkayy)
#### Post date: [August 30, 2021, 1:42am UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/11 "2021-08-30T01:42:23Z")

</div>

An easier way is open your page in an external browser and inspect with the devtools of this external browser

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 30, 2021, 9:27am UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/12 "2021-08-30T09:27:56Z")

</div>

So, Pinegrow is a web App. It is a web page, powered by JavaScript, running on a stripped-down version of the Chrome browser. The Inspect tool of Pinegrow shows you both the elements of the App, but also the elements of your page, which is just a page in a page. Use the element finder in the upper-left corner of the DevTools to select an element on your page within Pinegrow.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 30, 2021, 4:35pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/13 "2021-08-30T16:35:48Z")

</div>

> [@RobM](#):
>
> powered by JavaScript, running on a stripped-down version of the Chrome browser

Interesting, but I think I’m with Akayy, easier to open browser in PG and use devtools there.

---

<div class="post-metadata">

### Author: ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)
#### Post date: [August 30, 2021, 6:00pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/14 "2021-08-30T18:00:31Z")

</div>

Whatever you feel comfortable with. I just like to keep people informed and give them options.

---

<div class="post-metadata">

### Author: ![kat](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/kat/32/2221_2.png) [@kat](https://forum.pinegrow.com/u/kat)
#### Post date: [August 30, 2021, 9:35pm UTC](https://forum.pinegrow.com/t/dropdown-hamburger-not-working/5586/15 "2021-08-30T21:35:33Z")

</div>

> [@RobM](#):
>
> I just like to keep people informed and give them options.

You are super at that!!! I’m a fan, Rob.
