I have a list in MVC that I want to display inline in blocks.
List-
<ul>
<li>
@foreach (var item in Model) {
<img src="@item.cardFilePath"/>
}
</li>
</ul>
CSS attempted here-
li
{
list-style-type: none;
display: inline-block;
float: left;
margin: 0px 24px;
padding-left: 24px;
}
Essentially, there will be dynamically generated images coming through the model and need to be displayed inline.
How can I inline these images being rendered within a list?