Richard Berendsen <be***@alwaysaccess.nl> wrote:
http://users.alwaysaccess.nl/~bemep/css/test.html
This is a funny trick to imitate the behaviour of
position:fixed.
It doesn't use JavaScript which is a plus over most attempts to
imitate fixed positioing in IE.
I couldn't use position:fixed, cause IE doesn't support it.
Not true. You can use it, but leave IE to have a fully scrolling page.
Nothing wrong with a bit a graceful degradation in less capable
browsers.
This trick assummes that every graphical browser (The style
sheet can be connected via media="screen" so I only have to
reckon with graphical browsers I guess) uses scrollbars of
15 pixels wide, or else this page will look ridiculous.
However, so far all the browsers I tested did.
Which browsers were they?
Better GUIs (whether at browser or OS level) give the user the ability
to set the width of the scrollbar, for increased accessibility.
IE6 -
http://steve.pugh.net/test/ie6.png
Top and bottom areas overlap scrollbar, thin sliver of content area
shows below bottom area.
Opera 7 -
http://steve.pugh.net/test/op711.png
Scrollbar sits inside page, normal scrollbar area is blank.
Scrollbar track takes on content area background colour.
Netscape 4 - no scrollbars, content inaccessible.
Of the browsers I tested in only Mozilla 1.3 displays it exactly as I
assume you wanted it to.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>