I'm working on a custom email template:
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://google.com" style="height:225px;v-text-anchor:middle;width:600px;" arcsize="45%,0,0,45%" strokecolor="#fffefe" fill="t">
<v:fill type="frame" src="https://www.shutterstock.com/image-vector/childrenkids-playground-swing-slide-climbing-260nw-1930215425.jpg" color="#F8F7F1" />
<w:anchorlock/>
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">.</center>
</v:roundrect>
I'm trying to curve only the left side but instead, it is curving all the corners, is it even possible to curve only the left side?
A
RoundRectelement can only apply the same curve to all sides. What you can use instead is aShapeelement with a customPathelement.Here's what it would look like in your example:
In this example, I'm setting a 45px rounded corner on the top left and bottom left. In order to do this, I first defined the
coordsizeattribute to be the same size of the VML shape. This will make it easier to then define the actual path of the shape in thevattribute.Here's how the values in this
vattribute work:m 45,0: Start drawing a shape at the point45,0.l 600,0: Draw a line to the point600,0(the top right corner).l 600,225: Draw a line to the point600,225(the bottom right corner).l 45,225: Draw a line to the point45,225(just before the start of the bottom left rounded corner).qx 0,180: Draw the bottom left arc to the point0,180.l 0,45: Draw a straight line up to the point0,45.qy 45,0: Draw the top left arc to the point0,45.x: Close the shape.If you want to adjust the radius, you can change the
45values into what you want and the180values into the difference between the height of the shape and your radius. (Here it’s225 - 45.)