html - make div side by side in django simple template? -




i learning django , want know how put div in for loop side side know how without loop here have on div loop more 1 time:

 {% albums in all_albums %}         <div id="album" class="some-class" style="background-image: url({{ albums.album_logo }})">          {% if albums.is_favorite %}             <img src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/actions-rating-icon.png"  >         {% endif %}         </div> <a href="{% url 'detail' albums.id%}"><h3>{{ albums.title }}</h3></a>         <p>{{ albums.song_set.count }} songs inside</p><br>     {% endfor %} 

i want

enter image description here





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -