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> 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -