I want to create a megamenu in bootstrap.
(Something like jsfiddle.net/apougher/ydcMQ/). But the items are not predefined... they are dynamic in nature. So I cant use <ul><li>
with some fixed items in it. So I am looking for some dynamic approach where multiple <li>
items will be defined under one single <ul>
element and the height need to be fixed. Once the height crosses the limit, next <li>
elements should come in next column and so on... Can this be done?
Edited: Basically I am looking for a way where the height is fixed and width per column is fixed. If the number of lines cross the fixed height, they should go into the next column automatically. For Ex: If the height is 400px which allows only 10 lines (Just an example). If I write 25 lines... it should span into 3 columns automatically with first column having 1-10 lines, second column having 11-20 lines and third column having 21-25 lines.