Previous Message
Next Message

Why z-index does not work for transformed element?

Sent by Mark Senff on 8 January 2012 04:04


> In the following example, no matter what z-index I set, div2 is always
> above the first div. Does anybody know how to change css to make div2
> in the bottom? Why z-index does not work with transform?

You just need to make sure that the DIV elements have a "position" value.
Set it to "position:absolute;" or "position:relative;" and the Z-index will
have effect.

mS


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: