XUL Programmer's Reference Manual

<stack>

Attributes Common Children
id titledbutton
  text
  img
  box
   
   

The <stack> element provides a way to group transparent layers with one another. Like the deck, the stack is a container for any number of child elements. These child elements appear together at the same time, as in the following sample:

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 

<window id="stack show" 
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns="http://www.mozilla.org/keymaster/
    gatekeeper/there.is.only.xul">


  <box style="background-color: lightgrey;">
    <stack>
      <button value="M     H    " />
      <button value="    O     E   " />
      <button value="      T     R" />
    </stack>
  </box>
</window>

The three buttons defined as child elements of the stack are interpolated into what looks like a single button.


 
Last updated: 3/20/00 Ian Oeschger