0

I am currently experimenting with svg in html and have a stack of overlapping foreignObject elements. I would like to be able to bring an individual foreignObject to the front of the stack using javascript.

I can't seem to get the zIndex property to work with them and I'm not sure what else I could try.

Is it possible? How could I do this?

Heron
  • 329
  • 2
  • 5
  • 15
flibit
  • 3
  • 2

1 Answers1

0

On an older post on this site, a user said:

My solution is to add style="display:inline-block" to the first child of the foreignObject tag. This seems to fix the problem.

Community
  • 1
  • 1
fred02138
  • 3,323
  • 1
  • 14
  • 17