Solved! Go to Solution.
What are you using for no underline? Text-decoration:none; gets rid of the font-color:white;
Thanks
The text-decoration
property adds an underline, overline, line-through, or a combination of lines to selected text. It's got nothing to do with the colour. Please check your code, it is not "font-color:white;", you should use "color: #ffffff" instead.
Well... just 'cuz I'm feeling picky, text-decoration does have a special relationship with color in that the the color of the element with t-d dictates the color of the decoration.
Thus
<div style="text-decoration:underline;color:green;"><span style="color:red;">This is red text w/green line</span></div>
displays as
while
<div style="color:green;"><span style="text-decoration:underline;color:red;">This is red text w/red line</span></div>
displays as
so in some strange/necessary cases setting text-decoration can be used to get a desired display style.
I agree that doesn't seem to be the case here.
@ Paula E, I have a solution to that.
Step 1 - You have to get the URL of your calendar file:
a) In Marketo create the calendar file as a token, and make the "Hyperlink Text" a plain text value (e.g. Save the Date, or Click here)
b) Within your email, place the token anywhere
c) Approve and send a sample of your email to your inbox
d) Open the sample email and copy the link URL of the token. Save it in a text editor or somewhere accessible
Step 2 - Add the link of the calendar file to your button
a) Now that you have the URL of the calendar file, go back to your token settings in the marketo program
b) Replace the hyperlink text with the "span styling" of the button or the "a styling" of the text within the button as you have been advised to do by Jordan above. The only difference is that you add the hyperlink of the calendar file - for example:
<a href = "yourcalendarfileURL.com">buttonimage.png</a>
So for example, the html code that Boris K used above would be amended to be:
<span style="color: #e05206;font-weight:bold;"><a href="yourcalendarfileURL.com">Add this event to your diary</a></span>
My code looks like this:
<a href = "http://go.google-mkto.com/i05T0AP70fCxxxxxxxx" target="_blank" style="background-color: #4285f4; color: #ffffff; border-radius: 3px; height: 50px; line-height: 50px; display: inline-block; width: 180px; font-size: 15px; text-decoration: none;">Add to calendar</a>
Let me know if this worked for you.