mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Add vertical alignment docs for flexbox grid
This commit is contained in:
parent
7b7cf221cd
commit
9a519bb7e3
@ -69,3 +69,65 @@ Auto-layout for flexbox grid columns also means you can set the width of one col
|
|||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
## Vertical alignment
|
||||||
|
|
||||||
|
Use the flexbox alignment utilities to vertically align columns.
|
||||||
|
|
||||||
|
<div class="bd-example-row">
|
||||||
|
{% example html %}
|
||||||
|
<div class="container">
|
||||||
|
<div class="row flex-items-xs-top">
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-items-xs-center">
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row flex-items-xs-bottom">
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endexample %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bd-example-row bd-example-row-flex-cols">
|
||||||
|
{% example html %}
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col flex-xs-top">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col flex-xs-center">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
<div class="col flex-xs-bottom">
|
||||||
|
One of three columns
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endexample %}
|
||||||
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user