I have the following index.html page that leverages Django templates:
{% extends "layout.html" %}
{% block body %}
{% for entry in entries %}
<div class="card h-100 mb-3" style="max-width: 540px;">
<a href="{% url 'entry' entry.id %}">
<img class="card-img-top" src="{{ entry.image.url }}" alt="{{ entry.title }}">
</a>
<div class="card-body">
<h5 class="card-title">{{ entry.title }}</h5>
<p class="card-text">{{ entry.description }}</p>
{% endif %}
</div>
</div>
{% empty %}
No content found.
{% endfor %}
{% endblock %}
Currently, the Bootstrap cards render in a single column (one on top of the other), and they're left-justified.
What is the best way to render cards such that there are two cards side-by-side (and responsive to become a single column if the screen becomes narrow)?
Thanks in advance!