vendredi 3 février 2017

How do I loop through grid properly?

I'm currently working on a little photo gallery index.

How can I make it so that my loop fills all 4 columns and then continues making a new row, repeating that process.

Now as you can imagine it'll appear like this:

enter image description here

This is my code:

<div class="row">

    @foreach($photoGalleries as $photoGallery)

        <div class="col-md-3">
            <a href="">
                <img class="img-fluid" style="height: 200px; width: 200px;" src="/images/">
            </a>
            <h3></h3>
        </div>

    @endforeach 

</div>



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2k4Mpqb
via IFTTT

Aucun commentaire:

Enregistrer un commentaire