4 Images per row: MVC HTML RRS feed

  • Question

  • Can someone show me how to get the images to load 4 in column . I want 4 images per row row

    <div class="form-border">
        <table class="table">
            <ul class="thumbnails">
                @foreach (var photo in Model)
                    <li class="item">
                        @*<select asp-for="@photo.Breed" asp-items="@photo.PetList.ToSelectListItem()" class="form-control"></select>*@
                        <a href="@Url.Content(photo.Resource)">
                            <img alt="@photo.Breed" src="@Url.Content(photo.Resource)" class="thumbnail-border" width="180"/>
                        <span class="image-overlay">@photo.Breed</span>


    • Moved by CoolDadTx Saturday, June 23, 2018 3:47 PM ASP.NET related
    Friday, June 22, 2018 8:09 PM

All replies

  • C# forum is dedicated to C# issues.

    https://forums.asp.net/  <------ MVC is there.

    Friday, June 22, 2018 8:34 PM