Yes I'm aware that one can position elements absolute relative to their parent container. The reason I asked about the possibility of fixed positioning relative to its parent container is because I have the idea of creating a floating nav and am using a fixed width layout. So I do not want the "floating nav" relative to the viewport. Elements that are fixed tend to scroll with the window. Wanted to see if there was a way to create a pure CSS floating nav and one that I can position relative to a container as opposed to the browser window.
TIA, Elli --- On Sat, 8/8/09, Ingo Chao <[email protected]> wrote: > From: Ingo Chao <[email protected]> > Subject: Re: [css-d] Fixed Positioning Relative to Parent Container? > To: "Elli Vizcaino" <[email protected]> > Cc: "CSS Discuss" <[email protected]> > Date: Saturday, August 8, 2009, 3:33 PM > 2009/8/8 Elli Vizcaino <[email protected]>: > > Hello, > > > > Was just wondering if there was a way to position an > element fixed relative to its parent container? At present > it seems fixed positioning is only relative to the viewport. > Is there a work around to make it relative to its parent > container? > > > > position:absolute > Or be a little more specific in your problem description. > > Ingo > ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
