opensubscriber
   Find in this group all groups
 
Unknown more information…

x : xul-talk@lists.sourceforge.net 7 October 2010 • 9:24PM -0400

[xul-interop] Why this css z-index is not working in my XUL app?
by Tom Brito

REPLY TO AUTHOR
 
REPLY TO GROUP




I have this Xul file:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://greenfox/content/mycss.css"
type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul
">
    <image class="Front" src="images/loading.gif"/>
    <image class="Back" src="images/plasma.jpg"/>
</window>


with this CSS:

.Back {
    position: absolute;
    left: 0px;
    top:0px;
    z-index:0;
}
.Front {
    position: absolute;
    left: 0px;
    top:0px;
    z-index:1;
}


and, for some reason, the images are vertically one above another, not in
z-index as specified by my CSS. Any idea how to fix it?
This same CSS in a html file works just fine..


*
Wellington B. de Carvalho
*

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.