none
4 Images per row: MVC HTML

    Pertanyaan

  • 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"/>
                        </a>
                        <span class="image-overlay">@photo.Breed</span>
                    </li>
                }
            </ul>
        </table>
    </div>


    pianoboyCoder

    • Dipindahkan oleh CoolDadTx Sabtu, 23 Juni 2018 15.47 ASP.NET related
    Jumat, 22 Juni 2018 20.09

Semua Balasan