Hi <...">

Is it possible to embed one VML in another?

For instance:

<v:roundrect style="display:block;width:100px;height:100px;" fillcolor="#eee">
Hi
    <v:roundrect style="display:block;width:50px;height:50px;" fillcolor="#c00">
        Hey
    </v:roundrect>
</v:roundrect>

I cannot see the background of the inner roundrect when I use this markup.

Any ideas?

+3
source share
1 answer

No VML forms can be nested within each other. You need to arrange them so that they overlap correctly.

<div style="position:relative;">
  <v:roundrect style="display:block;width:100px;height:100px;" fillcolor="#eee">
    Hi 
  </v:roundrect> 
  <v:roundrect style="display:block;width:50px;height:50px; top: 25px; left:25px;  position:absolute;" fillcolor="#c00"> 
    Hey 
  </v:roundrect>
</div>
+5
source

Source: https://habr.com/ru/post/1737947/


All Articles