0

I am trying to make a nice display of my array data within an element that has a certain width/height. What I want to do is that when my data reaches the bottom of the element to start a new column and continue with printing the data within that next column and so on/forth

Any help is much appreciated!

My code:

            <div class="repeater" ng-repeat="files in files">  {{files.name}}              
                <div class='progress-bar'>
                  <div class='percentage' ng-style="style">
                  </div>
                </div>
            </div>

Current view:

enter image description here

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
B.Wesselink
  • 63
  • 12

1 Answers1

0

HTML/CSS solution

This should be better solved by CSS than by your application logic. You could display the file names as list and adapt the approach at

How to display an unordered list in two columns?

to display them in multiple columns.

Community
  • 1
  • 1
kenda
  • 488
  • 6
  • 16