3 ms·
I think its quite a good site for css layout examples... I remember discovering how position:absolute was in fact _relative_ to the enclosing div/element, ayaa
by gord 18y ago
I think its quite a good site for css layout examples...
I remember discovering how position:absolute was in fact _relative_ to the enclosing div/element, ayaaay!
another css layout approach given here - http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/ http://www.digital-web.com/articles/everything_you_know_abou...
[ although ie6 seems to be broken wrt tabular divs, eek ]
- blasdel 18y agoposition:absolute only behaves that way relative to a positioned parent -- if the parent doesn't have the position attribute set, it keeps looking up the hierarchy until it finds one that is (or is the root).
- pmjordan 18y agoWhile we're nit-picking: if the parent doesn't have the position attribute set isn't quite accurate: the containing block must not have static positioning (which it does by default), but one of absolute, relative or fixed.
- gord 18y agothats kind of my point - its not trivially obvious that "absolute" is not absolute. I know ... RTFM.. but then theres what browsers actually do as a mixin. Hence good examples of motifs that are reasonably portable are all the more valuable.