I have a django app that I need to get in a list format. My problem is the how the event list is stylized in HTML after I filter my results. I have tried to add
and it does not seem to take and probably isn't the best practice.
I have been successful with using a table, but really don't like the look of it. Is there a way to just have an unordered list with appropriate spacing using a div or span tag? For example I would like for my list to look like
2/6/2013 Widget Company Chicago
2/7/2013 Dodad Company2 Kansas City
rather than
2/6/2013 Widget Company Chicago
2/7/2013 Dodad Company2 Kansas City
Here is my code, currently as a table.
{% if latest_events %}
{% for event in latest_events %}
<table border="1">
<tr>
<td> {{ event.event_date }} </td> <td>{{ event.company }}</td> <td> {{ event.venue }} </td> <td>{{ event.city }}</td>
</tr>
</table>
{% endfor %}
</ul>
{% else %}
<p>No Events are available.</p>
{% endif %}