]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Port #14654 over to hosted docs
authorChris Rebert <code@rebertia.com>
Sat, 27 Sep 2014 01:27:14 +0000 (18:27 -0700)
committerChris Rebert <code@rebertia.com>
Sat, 27 Sep 2014 01:27:14 +0000 (18:27 -0700)
javascript/index.html

index 4be25fbc96a3fac1592e8b00b50858c1211b2f2e..227515b8a3bbcb8cca663198fda4ba455aa28003 100644 (file)
 
   <h2 id="scrollspy-usage">Usage</h2>
 
+  <div class="bs-callout bs-callout-warning">
+    <h4>Requires Bootstrap nav</h4>
+    <p>Scrollspy currently requires the use of a <a href="../components/#nav">Bootstrap nav component</a> for proper highlighting of active links.</p>
+  </div>
+
   <h3>Requires relative positioning</h3>
   <p>No matter the implementation method, scrollspy requires the use of <code>position: relative;</code> on the element you're spying on. In most cases this is the <code>&lt;body&gt;</code>.</p>