Guruprasad J Rao
Guruprasad J Rao

Reputation: 29683

Replacement for css expression

So I have the below code in CSS

thead th
{
     top: expression(document.getElementById("divContainer").scrollTop);
}

I just want to know whether there is any replacement for the above line which has been introduced in CSS3? If yes how it would be?

Upvotes: 2

Views: 1374

Answers (1)

BoltClock
BoltClock

Reputation: 724142

expression() is a non-standard feature. It does not exist in any level of CSS. It's an old IE specific feature that has been removed from newer versions of IE, and is not coming back.

Since expression() is nothing more than a bridge between JavaScript and CSS, the simplest solution is to write the equivalent JavaScript. Exactly what the equivalent code looks like will probably depend on your layout.

Upvotes: 8

Related Questions