html - Using CSS circles in Email -


i'm trying create nice round circle number in middle, have working fine in browser, when go send in mailchimp circles become huge squares.

this css

.circle{     width:100px;     height:100px;     border-radius:50px;     font-size:20px;     color:#ffffff;     line-height:100px;     text-align:center;     background:#ff8080      } 

then using -

<div class="circle">1</div>

this in browser - circle in browser in outlook - cirlces in outlook

i found fix works -

<div align="center"><!--[if mso]> <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:100px;v-text-anchor:middle;width:100px;" arcsize="600%" stroke="f" fillcolor="#ff8080"> <w:anchorlock/> <center> <![endif]-->   <a href="http://"   style="background-color:#ff8080;border-radius:600px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:100px;text-align:center;text-decoration:none;width:100px;-webkit-text-size-adjust:none;">1</a> <!--[if mso]> </center> </v:roundrect> <![endif]--></div> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -