Utilizing Jinja2 with Flask to render a list on an HTML page, I aim to produce card decks containing data from the list using a Jinja2 loop.
This is my current HTML code:
<div class="container-fluid">
<div class="row">
<div class="card-deck">
{% for l in list %}
<div class="col-sm-4">
<div class="card">
<div class="card-body">
{{ l[0] }}
{{ l[4] }}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
The displayed outcome can be seen https://i.sstatic.net/Xr6LR.png.
I would like to eliminate the unnecessary red spaces as shown in the image https://i.sstatic.net/1dRCS.png.
Any suggestions on how I could achieve this?
Many thanks!