Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have an XUL panel without a shadow in my Firefox extension?

XUL panels in a Firefox extension overlay always come with a shadow for free. How can I remove this shadow?

Example code for the shadow effect I don't want:

<popupset>
    <panel id="popuppanel" width="500" noautohide="true">
        <vbox>
            <label value="test"/>
            <label value=""/>
            <label value=""/>
            <label value=""/>
        </vbox>
    </panel>
</popupset>

And a screenshot:

Example image of shadow effect I don't want. http://img124.imageshack.us/img124/7766/shadowj.png

like image 595
Mat Avatar asked Mar 08 '09 13:03

Mat


2 Answers

Use the following CSS statement:

-moz-window-shadow: none;

See also Firefox internal CSS stylesheet (mac version) for its bookmark panel.

like image 65
Roger Avatar answered May 22 '23 08:05

Roger


I think that is part of the OS's doing. Like there is also a shadow on menus in eg. notepad. Not familiar with Vista I have to say, but it's safe to say that it's OS specific.

like image 38
lithorus Avatar answered May 22 '23 08:05

lithorus