florian wrote on Tuesday, February 25, 2003 at 9:17:42 AM:
> On Die, 2003-02-25 at 16:01, Luc wrote:
>> Having the top nav menu in fixed position so when scrolling down,
>> the nav menu is still visible at the top of the page as opposite to
>> when scrolling further down the page the nav disappears ?
> i might be wrong, but isnt that possible with position: static?
I make the same mistake all the time. The CSS authors apparently
thought it funny to give two entirely different values (static and
fixed) nearly identical names. Learn to love it.
In CSS, "fixed" means "absolutely positioned, but fixed with respect
to the viewport" (if the media has a viewport--more on that later). On
the other hand, "static" means "this box isn't positioned" and it's
laid out according to the normal flow. I think of static as
"position:none" or "position:normal".
It also doesn't help that "fixed" has an entirely different meaning
with paged media. Instead of fixing the element with respect to the
viewport, it repeats it on every page. Granted, this is a nice
compression of values, and it does make sense once it's been
explained, but it's also unintuitive (IMO).
But I'm not bitter. :)