Zoe wrote: > What you are asking for *is* absolute positioning -- positioning one div > relative to another -- so why not just use absolute positioning? That > will allow your div to move along with the other div when the browser is > scrolled.
> Switch your fixed div to absolute and it will do what you want. Barney wrote: > I think what Rafael wants is for the object to be fixed compared to the > viewport, but for its initial position to be determined in relation to > its containing element, which could vary. > > I'm afraid you will need a combination of javascript and CSS for this, > where javascript works out where the element should be positioned > originally. PPK's blog achieves something similar with the navigation > menus in the side colums, you might find your answers by looking at his > code: http://www.quirksmode.org/blog/index.html > Yes, Barney knows what I mean. I feared I'd have to resort to JS and PPK's blog is exactly what I had in mind. :) However, I still wonder whether anyone thinks position:fixed would be more useful in this sort of implementation (doesn't move when viewport is scrolled, but is positioned relative to any containing block, not just the viewport). Not that I'm trying to change anything, I just wonder if anyone has come across a situation where this would have been useful. Cheers, Rafael ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
