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);
}

  

 

 

 

back to top