PDA

View Full Version : how to explicitly set z-index for an SVG element?



harjanto
Jan 11th, 2007, 11:42 AM
to my dismay this does not work (aLine is an svg element):
aLine.style.zindex = 1;


anyone know how to explicitly set z-index for an SVG element?

thanks for the help

VIPStephan
Jan 11th, 2007, 12:32 PM
How about using CSS (which is actually there for things like that)? I suppose you have embedded your graphic with the object element? So you would position your object relative and set z index:



object {
position: relative;
z-index: 2;
}