# Change Sub Menu Background Color and Text on Hover

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/change-sub-menu-background-color-and-text-on-hover  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Change Sub Menu Background Color and Text on Hover”](https://community.tadabase.io/uploads/default/original/2X/8/8ce305d912fd2faf49e4dd57463bc70c800bb220.png)

As shown in the image, here’s some CSS that you can add to your layout or page to change the background and text color when a user hovers over sub-menu items.

**One Easy Step**

**Go to the CSS tab in your layout or page and add the following code.**

```
.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    color: red !important;
    background-color: yellow !important;
}
```

![Screenshot for “Change Sub Menu Background Color and Text on Hover”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-03_19-26-01.png)

**Original Community Post:**

[Change sub-menu background color and text on hover - Community Discussions / Tips and Tricks - Tadabase Community](https://community.tadabase.io/t/change-sub-menu-background-color-and-text-on-hover/1979)
