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

Chad Bailey chadbailey at gmail.com
Tue Feb 28 14:19:29 EST 2006


Thanks, Jim, that got it.  Interesting that you didn't need to include the
positioning part, though.  I looked back through my other CSS mods and
didn't see any positioning attributes, but including the "position:
relative" makes the labels display just as expected.

Thanks again... case closed!


On 2/28/06, Jim Roberts <jimmyroberts at gmail.com> wrote:
>
> 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
>   }
>
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
>
>


More information about the Greasemonkey mailing list