Expressions in CSS / IE fix

This wont pass CSS validation, but its usefull to know that expressions can be added into css.

/* IE FIX */
#div {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0);
}

One thought on “Expressions in CSS / IE fix

Comments are closed.