Bill Teale Bill Teale - 1 year ago 76
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.

Answer Source

you need to add a new class to your stylesheet:
     background-color: #821726; // your color
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download