Monday, November 01, 2004

CSS Expressions

Did you know you can use Javascript in CSS? It's an IE 5+* item from MS that basically allows a CSS Expression to encapsulate Javascript. Geoff Appleby points out how to use it to make a TBODY tag scrollable, whilst the THEAD is stationary (look mum, no frames!). The actual example can be done more elegantly is you're just building for Firefox etc. (hint, use overflow:scroll), but the point is that it makes Javascript available for doing funky stuff ... now what else could we do with this?

* So it is probably only really useful in an intranet site.

No comments:

Post a comment