I use the bootstrap grid layout to render columns dynamically .
Here is the logic that i use
If there are N number of controls columns to be rendered for each row. The col-lg-{} number is decided based on the result (number of controls) /12 .
For example : if there are 6 controls then 12/6 each col attribute will then contain col-lg-2 ,col-md-2 col-sm-2 etc.
Sample of a bootstrap "row" here .
Now the problem here is if i resize the window the controls in row tend to reduce its width and shrink by its width !!. Instead i want the controls that dont fit in the row to move down below ?
Any suggestion as to how to go about this ? Please Let me know if the question is not clear ?.