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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Going Native With Chrome
Mozilla Fixes Firefox Flaws as 3.5 Release Nears
Microsoft and Novell Still Bosom Buddies

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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
XML and PHP Simplified · Creating a ASP.NET Contact Form · Data Filtering with PHP
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Intel to Host Live Nehalem Q&A · 12 Tips to Troubleshoot Network File-Sharing · 10 Tips for Selling on Kijiji