i generating html email body microsoft outlook in c# winforms, passing html code string variable.
i using tags, in email body displaying image on left , text on right-->dynamically retrieving rows database , adding li (bullets it).
when number of row increases td containing li data, td's alignment in breaking. td moving when number of li increases.(means left side image fixed right side text moving up, text not correctly image)
used position:absolute/relative fixed problem in .html page, when test same in outlook mailbox alignment still breaks.
somebody me.
string html = @"<table style=""float:left;width:900px;overflow:auto""> <tr> <td style=""float:left;margin-bottom:70px""> <img src=""smiley.png"" alt=""smiley"" /> </td> <td style=""font-family:calibri;margin-right:105px;margin-top:20px""> <h2 style=""font-family:calibri;font-size:15pt;font-weight:bold"">smiley</h2> <ul> <li>forget standard divs , css approach </li> <li>tables , multi-level nested tables way go , there seems no limit on levels of nested tables</li> <li>so don’t afraid use them despite how counter-intuitive may seem.</li> <li>divide design rows , columns may have (like me) when first learning web development</li> </ul> </td> </tr> </table>"
answer accept
use vertical-align: top; align content inside td
Comments
Post a Comment