I have been working on a project and I am using the standard bootstrap pagination style from online documentation. However, I am facing an issue with the pagination not appearing correctly in the mobile version (it does not stay on one line without wrapping). Here is the code for the pagination:
<nav aria-label="Page navigation">
<ul class="pagination ml-3">
<li class="page-item disabled"><a class="page-link">Previous</a></li>
<li class="page-item active"><a class="page-link">1</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=2">2</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=3">3</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=4">4</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=5">5</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=6">6</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=2">Next</a></li>
<li class="page-item"><a class="page-link" href="blog?page_no=6">Last ››</a></li>
</ul>
</nav>
Everything seems fine to me when I look at the code. But on the site itself, it looks terrible. https://i.sstatic.net/owOaf.png
If you have a moment to check the site, you'll see that it's within a
<div class="container>
, so it should be working properly. I have followed all the guidelines in the documentation. Can anyone offer some assistance?