From d787cffc5ac990efc5f0763bf32c900d8343b29b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 15 Mar 2014 14:39:56 -0700 Subject: [PATCH] relative not absolute --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript.html b/docs/javascript.html index fcfc12a736..8c172b809a 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -670,7 +670,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {

Usage

Requires relative positioning

-

No matter the implementation method, scrollspy requires the use of position: absolute; on the element you're spying on. In most cases this is the <body>.

+

No matter the implementation method, scrollspy requires the use of position: relative; on the element you're spying on. In most cases this is the <body>.

Via data attributes

To easily add scrollspy behavior to your topbar navigation, add data-spy="scroll" to the element you want to spy on (most typically this would be the <body>). Then add the data-target attribute with the ID or class of the parent element of any Bootstrap .nav component.

-- 2.47.2