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"/>
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
and italic
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 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence