Utilizing the pagination component in Bootstrap, the structure of the pagination itself is quite straightforward:
<ul class="pagination">
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
<li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
</ul>
However, I am looking to display additional metadata such as total pages and total records next to the pagination. I want this information to be aligned centrally with the pagination controls.
Unfortunately, adding the page information directly inside the ul
element is not an option as it is generated by a third-party library.
I have attempted a solution showcased here: http://plnkr.co/edit/abVwf6rnluYKiOOzXNrt?p=preview
As demonstrated, achieving the desired alignment has proven challenging.
I have considered adjusting the padding
or margin
for the div.pageinfo
, or manipulating the height
and line-height
. However, I am curious if there is a way to accomplish this without resorting to hardcoded values.