When using Explorer, I was able to fix the "thead" part of my table while scrolling by using CSS expressions. The following CSS code snippet showcases how it's done:
.standardTable thead tr {
position: relative;
top: expression(offsetParent.scrollTop);
}
Unfortunately, this method doesn't work in Chrome as expressions are deprecated for that browser. I am seeking assistance in changing the "top" property of the above class using JavaScript or jQuery.
Is it possible to modify the top property in the specified CSS using JavaScript or jQuery?
I've explored several examples, but none seem to be working perfectly.
(PS: I'm hoping for a single line of code that can adjust the top property mentioned above)
Do you think it's achievable?