0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

Fixes #21123: More specific definition of fixed-width block level for .mx-auto

This commit is contained in:
Mark Otto 2016-11-23 11:28:17 -08:00
parent ab54151ed3
commit 8d3f0995d1

View File

@ -62,7 +62,7 @@ Here are some representative examples of these classes:
{% endhighlight %} {% endhighlight %}
### Horizontal centering ### Horizontal centering
Additionally, Bootstrap also includes an `.mx-auto` class for horizontally centering fixed-width block level content by setting the horizontal margins to `auto`. 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="bd-example">
<div class="mx-auto" style="width: 200px; background-color: rgba(86,61,124,.15);"> <div class="mx-auto" style="width: 200px; background-color: rgba(86,61,124,.15);">