mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Harmonize the doc
This commit is contained in:
committed by
Mark Otto
parent
e8b7d38276
commit
5dc7f4c165
@@ -75,13 +75,13 @@ Here are some representative examples of these classes:
|
||||
Additionally, Bootstrap also includes an `.mx-auto` class for horizontally centering fixed-width block level content—that is, content that has `display: block` and a `width` set—by setting the horizontal margins to `auto`.
|
||||
|
||||
<div class="bd-example">
|
||||
<div class="mx-auto" style="width: 200px; background-color: rgba(86,61,124,.15);">
|
||||
<div class="mx-auto p-2" style="width: 200px; background-color: rgba(var(--bd-violet-rgb),.15); border: rgba(var(--bd-violet-rgb),.3) solid 1px;">
|
||||
Centered element
|
||||
</div>
|
||||
</div>
|
||||
|
||||
```html
|
||||
<div class="mx-auto" style="width: 200px;">
|
||||
<div class="mx-auto p-2" style="width: 200px;">
|
||||
Centered element
|
||||
</div>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user