mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
audit helpers docs: quick floats
This commit is contained in:
@@ -78,18 +78,13 @@ Float an element to the left or right with a class. `!important` is included to
|
|||||||
|
|
||||||
// Usage as mixins
|
// Usage as mixins
|
||||||
.element {
|
.element {
|
||||||
.pull-left();
|
@include pull-left;
|
||||||
}
|
}
|
||||||
.another-element {
|
.another-element {
|
||||||
.pull-right();
|
@include pull-right;
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<div class="bs-callout bs-callout-warning">
|
|
||||||
<h4>Not for use in navbars</h4>
|
|
||||||
<p>To align components in navbars with utility classes, use <code>.navbar-left</code> or <code>.navbar-right</code> instead. <a href="../components/#navbar-component-alignment">See the navbar docs</a> for details.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
### Center content blocks
|
### Center content blocks
|
||||||
|
|
||||||
Set an element to `display: block;` and center via `margin`. Available as a mixin and class.
|
Set an element to `display: block;` and center via `margin`. Available as a mixin and class.
|
||||||
|
Reference in New Issue
Block a user