Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h...
by blasdel on Friday April 10, 2009 @12:00AM
(#555671)
position: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).
[ Parent
| on HN ]
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h...
by pmjordan on Friday April 10, 2009 @04:28AM
(#555851)
While 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.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h...
by gord on Friday April 10, 2009 @07:59AM
(#555940)
thats 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.