From 1f8c19fe3c34b4587a5ecf084b3150cff6573103 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 26 Sep 2014 18:19:36 -0700 Subject: [PATCH] Port part of f9349f36dfbfda7bf755f458d856d45d07745f29 over to hosted docs --- javascript/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/index.html b/javascript/index.html index f7173eae48..a4227b49e5 100644 --- a/javascript/index.html +++ b/javascript/index.html @@ -2127,8 +2127,8 @@

Here's how the affix plugin works:

  1. To start, the plugin adds .affix-top to indicate the element is in its top-most position. At this point no CSS positioning is required.
  2. -
  3. Scrolling past the element you want affixed should trigger the actual affixing. This is where .affix replaces .affix-top and sets position: fixed; (provided by Bootstrap's code CSS).
  4. -
  5. If a bottom offset is defined, scrolling past that should replace .affix with .affix-bottom. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add position: absolute; when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.
  6. +
  7. Scrolling past the element you want affixed should trigger the actual affixing. This is where .affix replaces .affix-top and sets position: fixed; (provided by Bootstrap's CSS).
  8. +
  9. If a bottom offset is defined, scrolling past it should replace .affix with .affix-bottom. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add position: absolute; when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.

Follow the above steps to set your CSS for either of the usage options below.

@@ -2184,7 +2184,7 @@

Events

-

Bootstrap's affix class exposes a few events for hooking into affix functionality.

+

Bootstrap's affix plugin exposes a few events for hooking into affix functionality.