CSS Position Sticky | sticky css
CSSpositionstickyhasreallygoodbrowsersupport,yetmostdevelopersaren’tusingit.Thereasonforthatistwofold:First,thelongwaitforgoodbrowsersupport:Ittookquitealongtimeforbrowsersupporttohappen,andbythetimeitdidthefeaturewasforgotten.Thesecondreasonisthatmostdevelopersdon’tfullyunderstandthelogicbehindhowitworks,andthat’swhereIcomein.IassumeyouallknowCSSPositions,butlet’shaveabriefreview:Upuntil3yearsago,therewerefourCSSPositions:static,relative,abso...
CSS position sticky has really good browser support, yet most developers aren’t using it.
The reason for that is twofold: First, the long wait for good browser support: It took quite a long time for browser support to happen, and by the time it did the feature was forgotten.
The second reason is that most developers don’t fully understand the logic behind how it works, and that’s where I come in.
I assume you all know CSS Positions, but let’s have a brief review:
Up until 3 years ago, there were four CSS Positions: static, relative, abso...