Center align the pagination div

This commit is contained in:
PCoder 2019-11-20 18:06:06 +05:30
parent 079e7f1642
commit e752946ed6
2 changed files with 9 additions and 0 deletions

View File

@ -423,6 +423,13 @@ body {
.custom-black-logo { .custom-black-logo {
padding: 8px 15px; padding: 8px 15px;
} }
.pagination a { .pagination a {
text-decoration: underline; text-decoration: underline;
} }
.ungleich-center-div {
margin: auto;
width: 50%;
text-align: center;
}

View File

@ -1,4 +1,5 @@
{% macro render_pagination(pagination) %} {% macro render_pagination(pagination) %}
<div class="ungleich-center-div">
<div class="pagination"> <div class="pagination">
{% if pagination.has_prev %} {% if pagination.has_prev %}
<a href="{{ pagination.prev|url }}">&laquo; Previous</a> <a href="{{ pagination.prev|url }}">&laquo; Previous</a>
@ -21,4 +22,5 @@
<span class="disabled">Next &raquo;</span> <span class="disabled">Next &raquo;</span>
{% endif %} {% endif %}
</div> </div>
</div>
{% endmacro %} {% endmacro %}