Skip to content

Commit

Permalink
Add note about adding a direction
Browse files Browse the repository at this point in the history
  • Loading branch information
simurai committed Nov 21, 2019
1 parent 43c2fed commit ab63d71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/utilities/layout.md
Expand Up @@ -303,6 +303,7 @@ _Note: fixed positioning has been disabled here for demonstration only._

Use `.position-sticky` to keep an element stuck to an edge as long as its parent is visible. Things to keep in mind:

- Using the `.position-sticky` class by itself doesn't have any effect. An additional `[top|bottom|left|right]-0` class is needed. See the examples below.
- Add a background color to sticky elements so it covers the content underneath.
- Use `style="z-index: 1;"` (or higher) in case there are other elements with `z-index`.

Expand Down

0 comments on commit ab63d71

Please sign in to comment.