css - How do I control the leaking of this link? -
i'm sending activation email. user must click button activate account, link boundaries extending beyond button. how fix problem without inserting a tags
inside main element? then, text clickable, not parent div.
<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='center'> <div style='border: 1px solid #ccc;width:538px;font-family:helvetica; padding: 30px'> <span style='font-size: 30px;text-align: center;color: #606060;font-weight: bold;'> 1 more step... </span> <br> <br> <br> <a href='#' style='text-decoration: none'> <div style='color: white; padding: 20px 50px 20px 50px; background: #69b8d6; border: 1px solid #69b8d6;text-align: center;width: 156px;font-size: 18px;font-weight: bold;border-radius:3px;'> activate account </div> </a> </div> </td> </tr> </table>
use display:inline-block
...
<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='center'> <div style='border: 1px solid #ccc;width:538px;font-family:helvetica; padding: 30px'> <span style='font-size: 30px;text-align: center;color: #606060;font-weight: bold;'> 1 more step... </span> <br> <br> <br> <a href='#' style='text-decoration: none'> <div style='color: white; padding: 20px 50px 20px 50px; background: #69b8d6; border: 1px solid #69b8d6;text-align: center;display:inline-block;width: 156px;font-size: 18px;font-weight: bold;border-radius:3px;'> activate account </div> </a> </div> </td> </tr> </table>
Comments
Post a Comment