O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.5. Style Options

As for static content and buttons, Mozilla duplicates much of the information about forms and menus in the style system.

Perhaps the most powerful style features are style rules that affect which XBL binding applies to which XUL tag. The type attribute (for <button>, <toolbarbutton>, and <textbox>) and the editable attribute (for <menulist>) are all specified in style rules. Those rules direct the basic XUL tag to a specific binding, which ultimately affects its content, appearance, and behavior. After you have learned XBL, it is possible to add more such bindings and style rules. The type attribute can then provide more widget variants.

7.5.1. CSS Styles from HTML Forms

Some standard HTML form styles are available for use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required