</pre>
<h4>.clearfix</h4>
- <p>Clear the <code>float</code> on any element</p>
+ <p>Clear the <code>float</code> on any element.</p>
<pre class="prettyprint linenums">
class="clearfix"
</pre>
<pre class="prettyprint linenums">
.clearfix {
- *zoom: 1;
&:before,
&:after {
+ content: " ";
display: table;
- content: "";
}
&:after {
clear: both;
</ul>
<p>These styles can be found within <strong>scaffolding.less</strong>.</p>
- <h3>Reset via Normalize</h3>
- <p>With Bootstrap 2, the old reset block has been dropped in favor of <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.</p>
+ <h3>Normalize reset</h3>
+ <p>For improved cross-browser rendering, we use <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
</section>
</pre>
<h4>.clearfix</h4>
- <p>Clear the <code>float</code> on any element</p>
+ <p>Clear the <code>float</code> on any element.</p>
<pre class="prettyprint linenums">
class="clearfix"
</pre>
<pre class="prettyprint linenums">
.clearfix {
- *zoom: 1;
&:before,
&:after {
+ content: " ";
display: table;
- content: "";
}
&:after {
clear: both;
</ul>
<p>These styles can be found within <strong>scaffolding.less</strong>.</p>
- <h3>Reset via Normalize</h3>
- <p>With Bootstrap 2, the old reset block has been dropped in favor of <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.</p>
+ <h3>Normalize reset</h3>
+ <p>For improved cross-browser rendering, we use <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
</section>