Is there a way to modify my current code so that the output is displayed in two columns instead of one? Would using flex grid be the best approach, or is there another method I should consider?
<div class="col-12 box-container">
<div class="col-6">
@foreach (var s in Model.StatusVM
.Where(a => a.subHtmlID == x.HtmlID)
.OrderBy(a => a.IDName)
.ThenBy(a => a.SortOrder)
.ThenBy(a => a.HID))
{
@Html.Partial("_MusicRow", s)
}
</div>
</div>
The current output appears as follows...
item 1
item 2
item 3
item 4
<div class="col-12 box-container">
<div class="col-6">
<a class="status-row" href="#">item 1</a>
<a class="status-row" href="#">item 2</a>
<a class="status-row" href="#">item 3</a>
<a class="status-row" href="#">item 4</a>
</div>
</div>
I am aiming for the following layout:
item 1 item 2
item 3 item 4