Simon Willison’s Weblog

Subscribe

position:fixed in IE, no Javascript required

25th April 2003

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.

This is position:fixed in IE, no Javascript required by Simon Willison, posted on 25th April 2003.

Next: Phoenix / Firebird nightlies hotting up

Previous: Experimental feature: Related entries

Previously hosted at http://simon.incutio.com/archive/2003/04/25/positionFixedFixed