Outlook-safe email buttons: the VML pattern and when to skip it
Classic Outlook draws email with Word's engine, which ignores border-radius and link padding. The VML button that fixes it, and what new Outlook changes.
2029
On this page
Classic Outlook for Windows draws email with Word's engine, which ignores border-radius and applies padding only to table cells. A button built from a padded, rounded link loses both there. The dependable fix is a VML rounded rectangle for classic Outlook plus a normal styled link for every other client. New Outlook does not need it.
A padded, rounded link<a style="padding:12px 24px; border-radius:4px">
Classic Outlook for Windows (Word engine): Padding and corners dropped
Gmail, Apple Mail, new Outlook and the rest: Drawn as written
The VML pattern below<v:roundrect> for Outlook, <a> for the rest
Classic Outlook for Windows (Word engine): Draws the VML shape, 200 by 40
Gmail, Apple Mail, new Outlook and the rest: Skips the VML, draws the link
Which Outlook versions are affected
Microsoft says Outlook 2007 took its HTML rendering from Word 2007. Litmus puts Outlook 2007 through 2019 and the desktop Microsoft 365 app on the Word engine, and new Outlook for Windows on a browser engine. No source we found says classic 2021 or 2024 changed engines, so treat every classic release as Word-based.
New Outlook for Windows is reported to handle HTML and CSS almost identically to Outlook on the web, and it ignores MSO conditional comments and VML.
Microsoft's migration page, last updated in February 2026, still describes new Outlook as opt-in and says classic installs stay supported until at least 2029. Plan to serve both engines until then.
Note
The button markup
<div>
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"
href="https://example.com/demo"
style="height:40px;width:200px;v-text-anchor:middle;" arcsize="10%"
stroke="f" fillcolor="#121211">
<w:anchorlock/>
<center style="color:#ffffff;font-family:Arial,sans-serif;font-size:14px;font-weight:bold;">
Book a call
</center>
</v:roundrect>
<![endif]-->
<!--[if !mso]><!-->
<a href="https://example.com/demo"
style="background-color:#121211;border-radius:4px;color:#ffffff;display:inline-block;
font-family:Arial,sans-serif;font-size:14px;font-weight:bold;line-height:40px;
text-align:center;text-decoration:none;width:200px;">
Book a call
</a>
<!--<![endif]-->
</div>The <!--[if mso]> block is read only by Outlook's Word-based renderer, and the <!--[if !mso]><!--> block serves every other client the link. In the VML, href makes the shape a link, v-text-anchor:middle centers the label vertically, and <w:anchorlock/> keeps the shape's anchor from moving when the message is edited.
Four details that break buttons
- Two URLs. The link sits in both the VML and the anchor. Update both, and check that click tracking rewrites the VML one: Litmus warns that some platforms do not.
- arcsize. Microsoft defines it as a percentage of half the shorter side, but Campaign Monitor's generator and Litmus's sample both pair 10% with a radius of one tenth of the height. The readings differ by a factor of two (drawn below), so check the corner in an Outlook render.
- Fixed size and case. The shape has a set width and height, so size it for your longest label. Type the label in the case you want, because Microsoft's Word 2007 reference lists
text-transformas unsupported. - DPI scaling. At 120 DPI, Windows can distort fixed-pixel layouts. Litmus documents the fix: the Office namespace on the html tag, and
PixelsPerInchset to 96 in anOfficeDocumentSettingsblock in the head.
Microsoft's definition. arcsize is a share of half the shorter side: 10% of 20 px is a 2 px radius.
How generators pair it. Campaign Monitor's generator writes 10% for a 4 px radius on a 40 px button: one tenth of the height.
Dashed square: the radius. The corner is drawn eight times life size
arcsize="10%", read two ways (Microsoft, buttons.cm).When to skip VML
Litmus lists five button methods, and only VML keeps rounded corners in Outlook. The padding-based method (background, padding and border-radius on a table cell, link inside) needs no VML and stays square in Outlook, but only the link text is clickable.
Litmus's September 2026 client data puts Outlook at 3.48% of opens and Outlook.com at 0.29%, and cannot separate Outlook versions. Keep the VML if classic Outlook is a large share of your own list and rounded corners are part of the brand. Otherwise a square button saves a second URL to track.
How to test
Check the final HTML in classic and new Outlook previews. Litmus previews Outlook 2007 through 2019, Office 365, new Outlook for Windows and Outlook.com among others. The editor exports buttons in this pattern, and the email design page covers how we build for Outlook.
Sources
- caniemail.comClassic Outlook for Windows draws email with Word's engine, which ignores border-radius
- caniemail.comapplies padding only to table cells
- learn.microsoft.comOutlook 2007 took its HTML rendering from Word 2007
- litmus.comLitmus puts Outlook 2007 through 2019 and the desktop Microsoft 365 app on the Word engine, and new Outlook for Windows on a browser engine
- emailmarkup.orgreported to handle HTML and CSS almost identically to Outlook on the web
- reallygoodemails.comit ignores MSO conditional comments and VML
- learn.microsoft.comMicrosoft's migration page, last updated in February 2026, still describes new Outlook as opt-in and says classic installs stay supported until at least 2029
- emailonacid.comSome 2023 commentary, such as Email on Acid's, gives October 2026 as the end of Word-based Outlook
- learn.microsoft.comMicrosoft's dates differ: Outlook 2021 retired that month
- learn.microsoft.comMicrosoft's dates differ: Outlook 2021 retired that month, and Outlook LTSC 2024 runs to October 2029
- learn.better.emailread only by Outlook's Word-based renderer
- w3.orgIn the VML, href makes the shape a link, v-text-anchor:middle centers the label vertically, and <w:anchorlock/>
- learn.microsoft.comkeeps the shape's anchor from moving
- litmus.comUpdate both, and check that click tracking rewrites the VML one: Litmus warns that some platforms do not
- learn.microsoft.comMicrosoft defines it as a percentage of half the shorter side, but Campaign Monitor's generator and Litmus's sample both pair 10% with a radius of one tenth of the height
- buttons.cmMicrosoft defines it as a percentage of half the shorter side, but Campaign Monitor's generator and Litmus's sample both pair 10% with a radius of one tenth of the height
- litmus.comLitmus's September 2026 client data
- litmus.comLitmus previews Outlook 2007 through 2019, Office 365, new Outlook for Windows and Outlook.com among others