user4912666
user4912666

Reputation:

Bootstrap Dropdown With Background Dim

I have a simple navbar in Bootstrap 3, with a drop down.

I'm looking to dim the background while the drop down is open (similar to when a modal is open). I'm not sure how to go about this.

Upvotes: 2

Views: 976

Answers (1)

BAGman
BAGman

Reputation: 117

I found a similar resource that describes it better than I could. It is basically a modal dialog box in the example. But the important part for you is the jquery as it is dependant on where the class of the click event is placed which you would place in the html tag for your dropdown. I hope this helps. http://www.webdesignfact.com/2011/06/quick-way-to-dim-and-cover-background-content-with-jquery.html

Upvotes: 1

Related Questions