Below is a code snippet showcasing the table pagination elements and styles I'm using. The layout looks great on medium and larger screens, but when viewed on smaller screens, the pagination elements wrap to the next line while the counts remain floated to the right.
Issue Screenshot:
https://i.sstatic.net/0XiJS.png
I would like the pagination elements to stack either on the left or centered on the screen for smaller screens, as shown in the desired result image below.
Desired Outcome:
https://i.sstatic.net/Dl9kr.png
Code Sample Demonstrating the Problem: (click 'Full Page' and resize your browser window to width below 500px to see the issue)
.button-group {
list-style: none;
margin: 0;
left: 0;
}
.right {
float: right !important;
}
ul {
margin-left: 0 !important;
line-height: 1.6;
padding: 0;
list-style-position: outside;
}
ul.pagination {
display: block;
min-height: 1.5rem;
}
... (CSS Code Continued)
-
... (Pagination List Items Continued)