css - collection-repeat on thumbnail cards and weird margins -
i building collection-repeat iterates through objects , fills cards based on them. have 2 main questions complete job. have been using 'thumbnail' cards when using approach not able correctly set margins. adds margin on left , none on right nor between different cards (bottom margin). have tried css, nothing works.
this html code:
<div class="card" collection-repeat="item in items" item-width="'100%'"> <div class="item item-divider"> {{item.eventtitle}} </div> <div class="item item-text-wrap"> <b>{{item.eventhour}}</b><br />{{item.eventtext}} </div> </div>
and on browser (no custom css added here), @ left margin , unexisting 1 on right:
how can solve both problems bottom , right margins?
thanks in advance
is there specific reason using collection-repeat? limit styling options.
converting simple ng-repeat makes issues go away http://codepen.io/aaronksaunders/pen/pzzvpr
<ion-content> <div class="list"> <div class="card" ng-repeat="item in items"> <div class="item item-divider"> {{item}} header </div> <div class="item item-text-wrap"> {{item}} body.. </div> </div> </div> </ion-content>
Comments
Post a Comment