As of now 2024, with the CSS position: fixed; the element is absolutely positioned to the whole window/document, even though the parent has a position: relative; it just wont work. But with this javascript solution an element can be relatively fixed to its parent.
-
Notifications
You must be signed in to change notification settings - Fork 0
As of now 2024, with the CSS position: fixed; the element is absolutely positioned to the whole window/document, even though the parent has a position: relative; it just wont work. But with this javascript workaround an element can be relatively fixed to its parent.
kenwhatts/relatively-fixed-element
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
As of now 2024, with the CSS position: fixed; the element is absolutely positioned to the whole window/document, even though the parent has a position: relative; it just wont work. But with this javascript workaround an element can be relatively fixed to its parent.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published