]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
relative not absolute
authorMark Otto <otto@github.com>
Sat, 15 Mar 2014 21:39:56 +0000 (14:39 -0700)
committerMark Otto <otto@github.com>
Sat, 15 Mar 2014 21:39:56 +0000 (14:39 -0700)
docs/javascript.html

index fcfc12a7366507cc569a4bd0c87296040fedce07..8c172b809af9accf0b90670200adc8c95ec29501 100644 (file)
@@ -670,7 +670,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
   <h2 id="scrollspy-usage">Usage</h2>
 
   <h3>Requires relative positioning</h3>
-  <p>No matter the implementation method, scrollspy requires the use of <code>position: absolute;</code> on the element you're spying on. In most cases this is the <code>&lt;body&gt;</code>.</p>
+  <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>
 
   <h3>Via data attributes</h3>
   <p>To easily add scrollspy behavior to your topbar navigation, add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the <code>&lt;body&gt;</code>). Then add the <code>data-target</code> attribute with the ID or class of the parent element of any Bootstrap <code>.nav</code> component.</p>