28 August 2009

CSS Expressions

Expressions allow javascript to be placed in the style sheet. Internet Explorer only though.

.internetexplorercontent {
  position: absolute;
  top: expression((offsetParent.scrollTop + 10) + 'px');
}
tags: Cascading Style Sheets - CSS - IE - Internet Explorer

Less Is More