Click here to Skip to main content
15,909,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
_bodyBuilder.AppendLine("<div> <a style=\"text-decoration:\"none\";border:\"1px solid #333\"; href ='' >Add to Calendar<img height ='25' width='25' src='calendar.png' alt='logo' /></ a ></div>");


What I have tried:

Hi! I am having hard time to apply style inside the tag. i tried to use style as we use in plan html but I dont know how to use style when you use StringBuilder.
Posted
Updated 7-Aug-18 7:18am

_bodyBuilder.AppendLine("<div> <a style=\"text-decoration:none;border:1px solid #333;\" href ='' >Add to Calendar<img height ='25' width='25' src='calendar.png' alt='logo' /></ a ></div>");
 
Share this answer
 
Comments
Member 13910513 7-Aug-18 8:45am    
Thanks it worked....
Try this

HTML
_bodyBuilder.AppendLine("<div> <a style="text-decoration:none;border:1px ;solid:#333"  href=''>Add to Calendar<img height='25' width='25' src='calendar.png' alt='logo' /></a></div>");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900