Alan K Baker wrote:

> I played around with the CSS (below) today and it's only a partial 
> fix.
> 
> It makes the navbar appear to be fixed when scrolling vertically, but
>  the entire page scrolls horizontally. Also, if you resize the 
> browser, it gets to a certain point where the window height is 
> shorter than the navbar and even the 'vertical fix' fails to work.

I know that "Fake position:fixed for IE6" will fail in most real-world
cases, as it puts too many restrictions on regular styling.
I've commented the "Fake position:fixed" article/demo...
<http://www.gunlaug.no/tos/alien/akb/test_09_0419-b.html>
...and added a few potential weak spots.

I've had a slightly more robust CSS version demoed and described on my
own site for quite a while...
<http://www.gunlaug.no/contents/wd_additions_17.html>
...but although it utilizes the same IE-quirks it is slightly more
complex and depends on a certain markup-order. Even it has its
limitations, but they are documented.

I only use IE-expressions myself...
<http://www.gunlaug.no/contents/wd_additions_15.html>
...as that is the only method that emulates 'position: fixed' to a level
where it in most cases actually works better than the real 'position:
fixed'. It is also the easiest thing in the world to let it fall back to
regular scrolling if script-support is missing. See my home page(s).

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
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/

Reply via email to