+ 4

CSS position:sticky; or JQuery/JS?

To create a sticky element such as a sidebar.

27th Jun 2017, 7:03 PM
Caitlyn Fowkes
Caitlyn Fowkes - avatar
4 Respostas
+ 4
Sorry. Corrected. :)
27th Jun 2017, 8:23 PM
Caitlyn Fowkes
Caitlyn Fowkes - avatar
+ 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
27th Jun 2017, 8:37 PM
visph
visph - avatar
+ 2
Is that a question ???
27th Jun 2017, 7:50 PM
Michael55555
Michael55555 - avatar
+ 2
I think sticky is looking better. ^_^
27th Jun 2017, 8:25 PM
Michael55555
Michael55555 - avatar