add div tag for centering ability

This commit is contained in:
Basyrov Rustam
2025-06-05 01:37:24 +03:00
parent 4faaa042cb
commit 7511c61a14

View File

@@ -2,12 +2,16 @@
<link rel="stylesheet" href="{% static 'polls/style.css' %}">
<h1>Different votes</h1>
{% if latest_question_list %}
<div>
<ul>
{% for question in latest_question_list %}
<li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>
{% endfor %}
</ul>
</div>
{% else %}
<p>No polls are available.</p>
{% endif %}