html - How do I order multiple items from my database on the same row? -
i want have 4 items database listed on same row, of now, code putting break between each item.
{% if latest_shoop_list %} {% shoop in latest_shoop_list %} <table> <tr> <td> <img src='images/{{ shoop.shoop_image }}' width='250'/> </td> <td> <img src='images/{{ shoop.shoop_image }}' width='250'/> </td> </tr> </table> {% endfor %}
any appreciated!
you can take table , row tags out of loop.
<table> <tr> {% shoop in latest_shoop_list %} <td> <img src='images/{{ shoop.shoop_image }}' width='250'/> </td> {% endfor %} </tr> </table>