mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
redo subheadings and organization of card layout options
This commit is contained in:
parent
5692406a11
commit
cba7b51081
@ -489,12 +489,14 @@ In need of a colored card, but not the hefty background colors they bring? Repla
|
|||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
## Groups
|
## Card layout
|
||||||
|
|
||||||
|
In addition to styling the content within cards, Bootstrap includes a few options for laying out series of cards. For the time being, **these layout options are not yet responsive**.
|
||||||
|
|
||||||
|
### Card groups
|
||||||
|
|
||||||
Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use `display: flex;` to achieve their uniform sizing.
|
Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use `display: flex;` to achieve their uniform sizing.
|
||||||
|
|
||||||
Only applies to small devices and above.
|
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<div class="card-group">
|
<div class="card-group">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -524,9 +526,8 @@ Only applies to small devices and above.
|
|||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
## Decks
|
When using card groups with footers, their content will automatically line up.
|
||||||
|
|
||||||
Need a set of equal width and height cards that aren't attached to one another? Use card decks. By default, card decks require two wrapping elements: `.card-deck-wrapper` and a `.card-deck`. We use table styles for the sizing and the gutters on `.card-deck`. The `.card-deck-wrapper` is used to negative margin out the `border-spacing` on the `.card-deck`.
|
|
||||||
|
|
||||||
Only applies to small devices and above.
|
Only applies to small devices and above.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user