This is my first try using XULRunner, currently I'm stuck on something that could considered basic. The XUL tags don't seem to work how they normally should. For example I can not set the CSS class on XUL Tags, the CSS works because if I declare the entry with the tag name the CSS properties work. Another issue is that declaring a 'button' does not do anything but add the box to which button should have to the window. If I instead use an html tag it appears correctly on the window.
I've been trying to get this working for several hours and can't make any sense out of this so maybe someone can help me. main.xul ----------------------------------------------- <?xml version="1.0"?> <!DOCTYPE window SYSTEM "chrome://project/locale/project.dtd" > <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <?xml-stylesheet href="chrome://project/skin/default.css" type="text/css"?> <window id="main" width="300" height="300" xmlns="http://www.mozillla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" title="&windowTitle;"> <script type="application/javascript" src="chrome://project/content/main.js" /> <vbox class="box" orient="horizontal" flex="100%"> <button id="btn01" label="More >>" class="dialog" oncommand="showMore();"/> <separator class="groove-thin" /> <spacer flex="1" /> <label class="banner" value="My Label" /> <html:input type="button" value="hola!" /> </vbox> </window> default.css --------------------------------------------- .box { -moz-appearance: none; background-color: #0088CC; } .banner { -moz-appearance: none; font-size: xx-large; } button { border: 1px solid black; width: 18px; } _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform