position:fixed in IE, no Javascript required
Via Craig Saila, a method for getting IE to apply position: fixed without resorting to Javascript. It uses a conditional comment (slightly ugly but perfectly valid HTML) and works a treat. Kudos to Eric Bednarz for clearing up another of those niggling CSS problems.
There's only one problem to this approach: when the page loads, the scrolling area isn't focused. This can be annoying for people who use keyboard nav, I'm not sure if it mucks up screen-readers though.
And I don't like to blow my own trumpet (never!), but... *ahem*
Tom Gilder - 26th April 2003 02:00 - #
Simon Jessey - 26th April 2003 03:09 - #
Philippe - 26th April 2003 14:42 - #
kent - 1st May 2003 22:12 - #
matt - 10th September 2004 14:32 - #