aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-09-26 18:27:14 -0700
committerChris Rebert <[email protected]>2014-09-26 18:27:14 -0700
commit55455720b261fae211fb4a29cf1b1fbd8405305b (patch)
treeb792b633ea5f81981c71684869aac5ebce6cd349 /javascript
parent31811a837c60c93ad3e7a80f0344c91fc7e00754 (diff)
downloadbootstrap-55455720b261fae211fb4a29cf1b1fbd8405305b.tar.xz
bootstrap-55455720b261fae211fb4a29cf1b1fbd8405305b.zip
Port #14654 over to hosted docs
Diffstat (limited to 'javascript')
-rw-r--r--javascript/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/javascript/index.html b/javascript/index.html
index 4be25fbc9..227515b8a 100644
--- a/javascript/index.html
+++ b/javascript/index.html
@@ -726,6 +726,11 @@
<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>