Currently on my blog page in Shopify, the blog articles display in a UL as list items, one after the other down the page.
I would like them to display in rows of 4. The Code I have currently is this:
<ul id="blog-articles" class="desktop-4 tablet-4 mobile-2">
{% for article in blog.articles %}
<li class="single-article">
<div class="article-body desktop-12">
<h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
<a href="{{ article.url }}">
<div class="article-content">
{% if article.image %}<img class="article-image" src="{{ article.image | img_url: 'grande' }}" alt="{{ article.title }}">{% endif %}
<div class="clear"></div>
</div>
</a>
</div>
</li>
{% endfor %}
</ul>
So it's obviously looping in the articles, but I'm not sure how to display them left to right, 4 on each row...
My site is here: https://www.okuhstudios.com/blogs/news and my new code comes in at the bottom of the page underneath all of the <hr>
lines...