September 13, 2000 - Dos and Donts for Filters | WebReference

September 13, 2000 - Dos and Donts for Filters

Yehuda Shiran September 13, 2000
Dos and Donts for Filters
Tips: September 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

The most important rule to remember about filters is that the object that the filter applies to must have layout for the filter effect to be seen. Some objects, like form controls, have layout by default. For other objects, you need to define their layout by specifying one of the following properties:

height
  • width
  • position: absolute
  • contentEditable: true

    When you nest an object inside another object, make sure the outermost object is positioned as absolute. Filters are ignored for any positioned objects nested inside nonpositioned objects, such as positioned SPAN inside nonpositioned DIV.

    Filters are ignored for the following objects:

    • The
    OBJECT, EMBED, and APPLET elements.
  • The
  • SELECT and OPTION form elements.
  • The
  • TABLE, TR, THEAD, TBODY, and TFOOT table elements.

    Learn more about filters in Column 68, Introduction to Filters in IE 5.5 and Up.