I’m trying to create a twitter bootstrap dropdown that has somewhere between 7-36 menu items. Unfortunately with that many items, I can only see the first 15 or so. I’d like to be able to split the number of items so that there are no more than 10 per column, before a new column is created.
I’m not trying to do nested dropdowns, I’m just trying to change the presentation of the dropdown so that there are no more than 10 items per column, however all of the items should still be displayed. I tried putting every 10 lis into their own div but that’s not even HTML compliant I think. Is it possible to do this via TBS?
You can use Bootstrap’s
.row-fluidto accomplish what you need.I’ve inlined the css for the width of the dropdown menu but you can specify a class/id and include that in your stylesheet.
Basically, what’s going on here is:
litags are inheriting their style from the parent dropdownThe example below was only tested in Chrome v23
* Boostrap 2.x:
[EDIT]
* Boostrap 3.x: