</div>
{% endhighlight %}
- <p class="alert alert-info">
- <strong>Heads up!</strong>
- Using icons without any additional content means the icons are not represented to screen reader users.
- </p>
+ <div class="bs-docs-sidenote">
+ <p><strong>Accessibility</strong></p>
+ <p>Keep in mind that using icons without any additional content means the icons are not represented to screen reader users.</p>
+ </div>
<h5>Dropdown in a button group</h5>
<div class="bs-docs-example">
</div><!-- /.navbar -->
{% endhighlight %}
- <div class="alert alert-info">
- <strong>Heads up!</strong> The responsive navbar requires the <a href="#collapse">collapse plugin</a>.
+ <div class="bs-docs-sidenote">
+ <p><strong>Plugin dependency</strong></p>
+ <p>The responsive navbar requires the <a href="#collapse">collapse plugin</a> to be included in your version of Bootstrap.</p>
</div>
$('.navbar').scrollspy()
{% endhighlight %}
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the dom like <code><div id="home"></div></code>.
+ <div class="bs-docs-sidenote">
+ <p><strong>Resolvable ID targets required</strong></p>
+ <p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the dom like <code><div id="home"></div></code>.</p>
</div>
<h3>Methods</h3>
</tr>
</tbody>
</table>
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- Options for individual tooltips can alternatively be specified through the use of data attributes.
+ <div class="bs-docs-sidenote">
+ <p><strong>Data attributes for individual tooltips</strong></p>
+ <p>Options for individual tooltips can alternatively be specified through the use of data attributes, as explained above.</p>
</div>
<h3>Markup</h3>
</tr>
</tbody>
</table>
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- Options for individual popovers can alternatively be specified through the use of data attributes.
+ <div class="bs-docs-sidenote">
+ <p><strong>Data attributes for individual popovers</strong>
+ <p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
</div>
<h3>Markup</h3>
<div class="bs-docs-example">
<div class="alert alert-block alert-error fade in">
<button type="button" class="close" data-dismiss="alert">×</button>
- <h4 class="alert-heading">Oh snap! You got an error!</h4>
+ <h4>Oh snap! You got an error!</h4>
<p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
<p>
<a class="btn btn-danger" href="#">Take this action</a> <a class="btn" href="#">Or do this</a>
<h4>$().button('toggle')</h4>
<p>Toggles push state. Gives the button the appearance that it has been activated.</p>
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.
+ <div class="bs-docs-sidenote">
+ <p><strong>Auto toggling</strong></p>
+ <p>You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.</p>
</div>
{% highlight html linenos %}
<button type="button" class="btn" data-toggle="button">...</button>
<button type="button" class="btn" data-loading-text="loading stuff...">...</button>
{% endhighlight %}
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- <a href="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.
+ <div class="bs-docs-sidenote">
+ <p><strong>Cross-browser compatibility</strong></p>
+ <p><a href="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.</p>
</div>
<h4>$().button('reset')</h4>
<h4>.carousel('pause')</h4>
<p>Stops the carousel from cycling through items.</p>
+
<h4>.carousel(number)</h4>
<p>Cycles the carousel to a particular frame (0 based, similar to an array).</p>
<div data-spy="affix" data-offset-top="200">...</div>
{% endhighlight %}
- <div class="alert alert-info">
- <strong>Heads up!</strong>
- You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.
+ <div class="bs-docs-sidenote">
+ <p><strong>Heads up!</strong></p>
+ <p>You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.</p>
</div>
<h3>Via JavaScript</h3>