0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

audit helpers docs: quick floats

This commit is contained in:
Mark Otto 2014-12-23 04:40:42 -08:00
parent 9aa8239f88
commit dfb6a679d2

View File

@ -78,18 +78,13 @@ Float an element to the left or right with a class. `!important` is included to
// Usage as mixins
.element {
.pull-left();
@include pull-left;
}
.another-element {
.pull-right();
@include pull-right;
}
{% 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
Set an element to `display: block;` and center via `margin`. Available as a mixin and class.