Positioning in the web explained with GIFs
blog.froont.com
blog.froont.com
I can issue a pull request with the corrections marked up if you have a git repo somewhere.
Unfortunately, the textual errors are detracting from the great message of the page.
Display, alignment, justification, relative parents, stacking contexts, flow, negative margins, flexbox, transform... all of these interact in... let's say interesting ways, and not consistently across browsers.
I wish CSS positioning could be explained with a few GIFs, but moving outside the playground you quickly realize it can't.
Now that the DOM and JS are mostly solved problems, I'd like to see browser vendors seriously tackle CSS rendering so it can be this simple.
And here's another good one that is specific to layouts: http://learnlayout.com/display.html
Is this really a good practice? I'd personally avoid it unless there's absolutely no other way of accomplishing whatever you are trying to do in terms of UX.
Are they saying, it's absolute in reference to the yellow box it's a child of, and it's only scrolling up because the yellow box is?
"The tricky part is that it will be absolute to the parent element that has a position of Relative or Fixed."
Should be: "relative, absolute or fixed" (or more simply: position other than static")