I have some data which should be displayed in 5 columns. The current code works well and the data is picked from the database and displayed correctly in the first 5 columns (each column has 7 data).
But after the fifth column the next column should start below the first column, instead it starts from the second column and goes on.
Below is the code currently used.
<li><a href="/c/@Model.CatList[0].Id/all/@Model.CatList[0].Name" class='white'>@Model.CatList[0].Name</a></li>
@for (int i = 1; i < Model.CatList.Count(); i++)
{
<li><a href="/c/@Model.CatList[i].Id/all/@Model.CatList[i].Name" class='white'>@Model.CatList[i].Name</a></li>
if (i % Model.FooterCount == 0)
{
@Html.Raw("</ul><ul>");
<li class='itemCaption f17o'> </li>
}
}