Skip to content

Instantly share code, notes, and snippets.

@SeloSlav
Last active June 13, 2018 07:45
Show Gist options
  • Select an option

  • Save SeloSlav/93e1d0e1de207ae56d0a77ebed9e36dd to your computer and use it in GitHub Desktop.

Select an option

Save SeloSlav/93e1d0e1de207ae56d0a77ebed9e36dd to your computer and use it in GitHub Desktop.

Revisions

  1. SeloSlav revised this gist Jun 13, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Page.cshtml
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    @foreach (var batch in Model.List.Batch(4))
    {
    <div class="row">
    <div class="row"> // Bootstrap.css row
    @foreach (var item in batch)
    {
    <div class="col -lg-3">item.ObjectId</div>
    <div class="col-lg-3">item.ObjectId</div> // Bootstrap.css column, i.e. col-lg-3 is 4 columns at screen resolution 'large'
    }
    </div>
    }
  2. SeloSlav created this gist Jun 13, 2018.
    9 changes: 9 additions & 0 deletions Page.cshtml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    @foreach (var batch in Model.List.Batch(4))
    {
    <div class="row">
    @foreach (var item in batch)
    {
    <div class="col -lg-3">item.ObjectId</div>
    }
    </div>
    }