0

I am trying to create pinterest like grid for my web app. I guess on mobile devices it should show two columns and more on large devices.

I have tried using ember-collection but for that i need to know the height of the cards(i need to show cards in the grid) which is not possible for me. I tried using bootstrap after that. Below is my code with bootstrap but it is rendering single column only

<div class="row">
  {{#each model as |item|}}
    {{#feed-small class="col-md-2" feed=item}} {{/pixyfi-feed-small}}
    {{/each}}
 </div>

enter image description here Could you please let me know where i am doing mistake?

Update: using xs instead of md works but it leaves large vertical gaps

enter image description here

Gennady Dogaev
  • 5,902
  • 1
  • 15
  • 23
Kumar Gaurav
  • 1,287
  • 3
  • 19
  • 47

0 Answers0