+ 4
CSS position:sticky; or JQuery/JS?
To create a sticky element such as a sidebar.
4 Antworten
+ 4
Sorry. Corrected. :)
+ 3
JQuery/JS has the advantage of be more cross-browser supported actually: even if the bad is that will not work if JS is desactivated by user or unavailable... but Css 'sticky' property not always good supported by whole browsers and anyway its behaviour is not obvious at all to master ^^
However, a 'position:fixed;' could be widely used, so much better than do it with JS :P
+ 2
Is that a question ???
+ 2
I think sticky is looking better. ^_^