XML technologies / CSS / Advanced websites with CSS / CSS property reference / behavior
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property behavior is not part of the CSS specification and works only in Internet Explorer. It can assign Dynamic HTML to several elements in a single step. A full description of this functionality is available at MSDN.
Inherited: no
Values
A URL (enclosed in url() according to CSS syntax) or an object ID.
Default value: none
Compatibility
CSS version: not part of the CSS standard
So-called “attached behaviors” are supported in Internet Explorer for Windows from version 5. Other behavior rules work in Internet Explorer for Windows from version 5.5.
Example
The following rule assigns each element of the CSS class draganddrop the behavior defined in the file draganddrop.htc:
.draganddrop {
behavior: url(draganddrop.htc);
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg