Rafael Holt wrote:
> I currently have a very fluid layout and would like something to have
> position:fixed but I want it to be 1em from the top of a certain div. The
> position of this div from the top of the viewport varies depending on what
> is above it. I realise it is impossible to have something fixed relative to
> somewhere other than the viewport. Why is this? 

Because that's what fixed positioning means, plain and simple. It means 
that something is fixed to a particular position in the viewport, so 
that even if all the other content scrolls off screen, you still see 
that div sitting in the same place on the screen and never moving.

> Why not make it behave like
> absolute positioning but not allow it to scroll down with everything else?
>   

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.

Zoe

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
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/

Reply via email to