Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap label class not wrapping

I'm performing an ng-repeat of labels

<span class="label label-primary" style="margin-right:5px;" ng-repeat="a in data.tags">{{a.tagName}}</span>

If the output is many labels, it goes off the screen, instead of wrapping responsively according to the col-md size i have it in.

see example: http://www.bootply.com/119412

What gives?

Thanks!

like image 277
user2827377 Avatar asked Mar 05 '14 21:03

user2827377


1 Answers

Changing display:inline to inline-block fixed this.

<span class="label label-primary" style="margin-right:5px; display:inline-block" ng-repeat="a in data.tags">{{a.tagName}}</span>
like image 173
user2827377 Avatar answered Oct 31 '22 16:10

user2827377