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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business