Re:Positioning in the web explained with GIFs
by jordanlev on Thursday January 22, 2015 @12:58PM
(#8930575)
Here is the best explanation I've ever seen (a bit more fleshed out than the OP): http://www.barelyfitz.com/screencast/html-training/css/posit...
And here's another good one that is specific to layouts: http://learnlayout.com/display.html
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.