[Greasemonkey] Greasemonkey, Gmail, and z-order...

Jim Roberts jimmyroberts at gmail.com
Tue Feb 28 12:18:50 EST 2006


On 2/28/06, Chad Bailey wrote:
> As you can see, the label is contained in a "ct"-class span.  I tried using
> a CSS stylesheet add-on to add "float: right" to the .ct class.  This put
> the label exactly where I wanted it... but I couldn't get the z-index
> property to function correctly.  The label was always underneath the message
> subject or snippet.  I tried adding "z-index: 10", "z-index: 50", "z-index:
> 99999999", and so on, but no luck.  I also tried adding a lower "z-index" to
> the .p class; again, nothing.

z-index only applies to positioned elements. I'm assuming you have
used positioning for some other elements on the gmail page since
simply floating span.ct works for me. You might try this:

  span.ct {
    float: right;
    position: relative; /* this will allow z-index to work */
    z-index: 10
  }


More information about the Greasemonkey mailing list