Skip to content

Commit d2e1fef

Browse files
committed
minor improvements to affix docs
1 parent 604c3b2 commit d2e1fef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,8 +1894,8 @@ <h3>Via data attributes</h3>
18941894
<div class="bs-callout bs-callout-warning">
18951895
<h4>Requires independent styling ;)</h4>
18961896
<p>
1897-
Affix toggles between three states/classes: <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. You must provide the styles for these classes yourself (independent of this plugin).
1898-
The <code>affix-top</code> class should be in the regular flow of the document. The <code>affix</code> class should be fixed to the page. And <code>affix-bottom</code> should be positioned absolute. Note, <code>affix-bottom</code> is special in that the plugin will place the element with JS relative to the <code>offset: { bottom: number }</code> option you've provided.
1897+
Affix toggles between three states/classes: <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code>. You must provide the styles for these classes yourself (independent of this plugin).
1898+
The <code>.affix-top</code> class should be in the regular flow of the document. The <code>.affix</code> class should be <code>position: fixed</code>. And <code>.affix-bottom</code> should be <code>position: absolute</code>. Note: <code>.affix-bottom</code> is special in that the plugin will place the element with JS relative to the <code>offset: { bottom: number }</code> option you've provided.
18991899
</p>
19001900
</div>
19011901

0 commit comments

Comments
 (0)