bettes midler

a real life website by Jonny Nail   ·   life + code

position:fixed in IE 6 (without using 'expressions')

Internet Explorer's messy little 'expressions' suck. Logic inside CSS files? Say whhaaat?

Luckily some smart little punk/legend has found a lovely (completely VALID) workaround that utilises another IE 6 bug.

The fix involves giving the body an overflow-y:auto property and a height of 100% , and then setting some extra overflow properties for the html tag - specific for browsers older than IE 7 (which supports the regular position:fixed property).

Note: the only downside of this is that it will convert ALL elements with a relative or absolute position into a fixed element.

July 30, 2009 [15:05]

Comment

Go Home