Sent by Thor Larholm on 22 October 2002 15:03
> They would just overlap each other however you set them... I've certainly
> used z-index a good bit... The only exceptions to this rule that I can
think
> of are forms and Flash... They'll always "rise to the top" of the z-index
no
> matter where you set them in the order...
(Not entirely OT, does relate to CSS)
Flash elements are typically implemented in the browser as windowed
elements, whereas ordinary HTML elements are windowless. Despite leaning
towards IE, Microsoft does have a very good knowledge base article on this
very topic:
INFO: How the Z-index Attribute Works for HTML Elements
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q177378
There are also differences between browsers as to what constitutes a
windowed element. IE is explained above, whereas NN4 treats any form element
as a windowed element. Mozilla is more relaxed and treat most elements as
windowless.
Windowed and windowless elements are kept on separate planes, with windowed
elements always on top. If you want to position something on top of a
windowed element, that something needs to be another windowed element. Your
other option is to use a windowless element in the first place.
The Flash control, being very popular for a variety of effects, comes in 2
different shapes, a windowed and a windowless version. Both are installed as
part of the distribution, and if you have the need to overlap a Flash movie
or make it transparent (e.g. so you can set its background-color through
CSS) you can simply set the "wmode" property to "transparent".
http://www.macromedia.com/support/flash/how/shock/wless2/
http://search.atomz.com/search/?sp-p=any&sp-k=Flash+Support&sp-k=General+Sup
port&sp-k=Flash+Remoting&sp-k=DesDev+Flash&sp-a=sp1001395b&sp-q=windowless
Thor Larholm
<URL: http://www.jibbering.com/faq/> FAQ for comp.lang.javascript
<URL: http://jscript.dk/unpatched/> Unpatched IE vulnerabilities