Expression(offsetParent.scrollTop)

I’m using expression(offsetParent.scrollTop) for (thead tr) to doesn’t scroll as below:
div.scrollTableContainer thead tr {
position:relative;
top: expression(offsetParent.scrollTop);
left:0;
} It’s working in IE compatibility mode not in IE10 and IE11 normal modes.
Please suggest me

According to this article:

Starting with Internet Explorer 11, CSS expressions are no longer enabled for webpages loaded in the Internet zone.
CSS expressions are supported for pages loaded in other zones (such as
the intranet zone) when pages are rendered in IE7 standards mode or IE5
quirks mode.

If I understand correctly, you need a “sticky” table header, and for that you probably need JavaScript, I’m afraid.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.