Bill Teale Bill Teale - 1 month ago 4x
CSS Question

bootstrap3 - how to change background color when in collapsed mode

I have a bootstrap3 navbar with a transparent background - bootply is at

Trouble is, I need a solid background color (#821726) on the drop down when the menu is collapsed.

I have a white background on dropdowns when the menu is enlarged, but can't work out what I have to change to get the background to only appear on the navbar dropdown in the "hamburger" view (still want the navbar itself to be transparent).

Thanks for any thoughts.


you need to add a new class to your stylesheet:
     background-color: #821726; // your color