class: the CSS style classes of the elementstyle: the CSS style of the elementclass attribute for each XUL widget. For example:<label value="The text" class="red boxed"/>
.button:checked { background-color: green; color: black; } .button { background-color: gray; color: white; }
style attribute allows to define inline style properties which will override those defined through CSS. For example:<button label="button" style="background-color: yellow;" />
xml-stylesheet processing instruction. For example:<?xml version="1.0"?> <?xml-stylesheet href="myCSS.css" type="text/css"?> <window title="Example" width="200" height ="200" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> ... </window>
normal ,  italic and  oblique values are supportednormal and  bold values are supportedcolor: red;color: #DDDDDD;.button { inset: 10px 10px 10px 10px; }
solid: a solid borderdashed: a dashed borderdotted: a dotted borderoutset: an outset borderinset: an inset border<?xml-stylesheet href="myCSS.css" type="text/css"?> <window title="Example 3" width="200" height ="200" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <label id="mylabel" value="This is some text" class="label" /> <button label="button" class="button" /> </window>And the following
myCSS.css CSS file:.button { font-size: 24px; font-weight: bold; background-color: yellow; }
style attribute, rather than with the styleclass:<?xml-stylesheet href="myCSS.css" type="text/css"?> <window title="Example 3" width="200" height ="200" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <label id="mylabel" value="This is some text" class="label" /> <button label="button" class="button" style="background-color: yellow;" /> </window>And the following
myCSS.css CSS file:.button { font-size: 24px; font-weight: bold; }
Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence