| Example 1 << >> | book |
| XUL | HOME |
| By default the menubar appears at the left side of the window. |
|
<?xml-stylesheet href="css1.css" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menubar> <menu value="AAA"/> <menu value="BBB"/> <menu value="CCC"/> </menubar> </window> |
| The align attribute with value vertical moves the menubar to the top |
|
<?xml-stylesheet href="css1.css" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical"> <menubar> <menu value="AAA"/> <menu value="BBB"/> <menu value="CCC"/> </menubar> </window> |
| In this example the stylesheet is not used. |
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical"> <menubar> <menu value="AAA"/> <menu value="BBB"/> <menu value="CCC"/> </menubar> </window> |
| If you do not plan to modify the default view you can address the default stylesheet directly |
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical"> <menubar> <menu value="AAA"/> <menu value="BBB"/> <menu value="CCC"/> </menubar> </window> |
| CSS | HOME |
| With CSS you can tailor final touch of the document. This instruction imports default Mozilla stylesheet. It is very reasonable always import some default stylesheet and then make only required changes. |
| @import url(chrome://global/skin); |