aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-28 14:45:11 -0800
committerMark Otto <[email protected]>2016-12-28 15:13:43 -0800
commit766d22ebb736690ce274942242caedb1e7355a00 (patch)
treeb37c9745b90a598f76c4bc82f1cead4828d88432
parent12c6a97ce3cd3821279eae0e06e3fb267ae1cd93 (diff)
downloadbootstrap-766d22ebb736690ce274942242caedb1e7355a00.tar.xz
bootstrap-766d22ebb736690ce274942242caedb1e7355a00.zip
add alignment docs with flex utils
-rw-r--r--docs/components/pagination.md31
1 files changed, 27 insertions, 4 deletions
diff --git a/docs/components/pagination.md b/docs/components/pagination.md
index dcede5428..0273e8efe 100644
--- a/docs/components/pagination.md
+++ b/docs/components/pagination.md
@@ -138,15 +138,38 @@ Fancy larger or smaller pagination? Add `.pagination-lg` or `.pagination-sm` for
</ul>
</nav>
{% endexample %}
+
+## Alignment
+
+Change the alignment of pagination components with [flexbox utilities]({{ site.baseurl }}/utilities/flexbox).
+
+{% example html %}
+<nav aria-label="Page navigation example">
+ <ul class="pagination justify-content-center">
+ <li class="page-item disabled">
+ <a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
- <a class="page-link" href="#" aria-label="Next">
- <span aria-hidden="true">&raquo;</span>
- <span class="sr-only">Next</span>
- </a>
+ <a class="page-link" href="#">Next</a>
+ </li>
+ </ul>
+</nav>
+{% endexample %}
+
+{% example html %}
+<nav aria-label="Page navigation example">
+ <ul class="pagination justify-content-end">
+ <li class="page-item disabled">
+ <a class="page-link" href="#" tabindex="-1">Previous</a>
+ </li>
+ <li class="page-item"><a class="page-link" href="#">1</a></li>
+ <li class="page-item"><a class="page-link" href="#">2</a></li>
+ <li class="page-item"><a class="page-link" href="#">3</a></li>
+ <li class="page-item">
+ <a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>