CSS Expressions

CSS expressions used to work in older IE’s, but they have been completely abandoned in IE8:

Dynamic properties (also called “CSS expressions”) are no longer supported in Internet Explorer 8 and later, in IE8 Standards mode and higher. This decision was made for standards compliance, browser performance, and security reasons, as detailed in the IE blog entry titled Ending Expressions. Dynamic properties are still available in Internet Explorer 8 in either IE7 mode or IE5 mode.

So it’s arguably not really worth learning them any more.

If not, what should I use?

Depending on the use case, JavaScript or media queries.

As @Yet Another Geek notes, your above example can be implemented using position: fixed. IE6 doesn’t support that – the CSS expression was probably created to work around that.

Leave a Comment