How to center the pagination in Bootstrap with HTML?

Spread the love

Sometimes, we want to center the pagination in Bootstrap with HTML.

In this article, we’ll look at how to center the pagination in Bootstrap with HTML.

How to center the pagination in Bootstrap with HTML?

To center the pagination in Bootstrap with HTML, we use the text-xs-center class.

For instance, we write

<div class="text-xs-center">
  <ul class="pagination">
    <li><a href="?p=0" data-original-title="" title="">1</a></li>
    <li><a href="?p=1" data-original-title="" title="">2</a></li>
  </ul>
</div>

to add the text-xs-center class to center the pagination ul.

Conclusion

To center the pagination in Bootstrap with HTML, we use the text-xs-center class.

Leave a Reply

Your email address will not be published. Required fields are marked *