3

For example:

<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 can't see the background of the inner roundrect when I use this markup.

Any ideas?

glen-84
  • 1,778
  • 2
  • 18
  • 30
  • This is an interesting article that touches on some of this, ultimately settling on an unusual but workable way of using vml shape paths: https://kontent.ai/blog/emails-outlook-containers-rounded-courners – Nathan Dec 01 '21 at 04:32

1 Answers1

5

No VML shapes can be nested inside each other. You need to position them so 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>
Andy E
  • 338,112
  • 86
  • 474
  • 445