I have HTML code to create multiple small boxes, each with a name retrieved from an object called graphdata
.
<div ng-repeat="a in graphdata" class="inline">
<div class="legend-box"style="background-color:{{a.color}};">
</div>
<p class="legend-name">
{{a.projects}}
</p>
</div>
</div>
I want to align these boxes in rows, with each row containing only 2 boxes with names. Here is an example of how I want the layout to look:
[] box1 [] box2
[] box3 [] box4
[] box5 [] box6
The issue is that I am using ng-repeat. How can I achieve this layout?