I am looking to design a pagination feature that has the following appearance:
On a wide screen:
| |
| [<<] Page # 1 of 6 [>>] |
| |
For narrow screens:
| |
| Page # 1 of 6 |
| [<<] [>>] |
| |
I attempted the following method:
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-xs-12 order-md-2 order-xs-1 text-center">
blah blah blah [B]
</div>
<div class="col-md-3 col-xs-6 order-md-1 order-xs-2 text-left">
««« [A]
</div>
<div class="col-md-3 col-xs-6 order-md-3 order-xs-3 text-right">
»»» [C]
</div>
</div>
</div>
View the code on Codepen: https://codepen.io/nonZero/pen/XZaxBR
However, when displayed on a narrow screen, it is shown as:
| |
| Page # 1 of 6 |
| [<<] |
| [>>] |
| |
(Edit: corrected mix-up between xs-12
and xs-6
from the original post, but the question remains unresolved.)