spacer
Yehuda Shiran September 23, 2000
Defining a Filter in STYLE
Tips: September 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

There are several ways to define a filter. The first method calls for a simple HTML element instantiation. Here is an example for the glow filter:

<DIV id=imgObj style="FILTER: progid:DXImageTransform.Microsoft.glow(Color=red,Strength=3); WIDTH: 150;">
This filter is defined in STYLE...element.
</DIV>

which yields the following text box:

This filter is defined in STYLE...element.

The second method is based on the STYLE element. You instantiate a filter by adding its single-word name to the filter attribute. Here is the same example from above, only this time the filter is defined in the STYLE element:

<STYLE>
   .divglow {
             filter: glow(Color=red,Strength=3); 
             width: 150;
            }
</STYLE>
<DIV CLASS="divglow">
This filter is defined in STYLE...element.
</DIV>

which yields the following text:

This filter is defined in STYLE...element.

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:


The Network for Technology Professionals

Search:

About Internet.com

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

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger