Skip navigation
Currently Being Moderated

Why are my inline css styles for BC tags being ignored and just default to blue underlines?

Apr 13, 2012 9:24 AM

I am familiar with inline css styling for email campaigns and have always customised links in emails with the code I sent:

however Im puzzled why this code doesn't work with BC tags {tag_viewinbrowser} and {tag_unsubscribe}, any help would

be great as I think the default blue links look ugly.

This is my code: <a href="" style="color:#78787c; text-decoration:underline;">{tag_viewinbrowser}</a>

All other links I have styled appear as they should, its just BC tags where the style seems to be ignored?

  • Currently Being Moderated
    Apr 13, 2012 11:17 AM   in reply to VickiTuch

    You can put <style>span#unsubscribe a{color:red;}</style> code in your newsletter html that can address the DOM that is specific to those links.  BC is adding it's own anchor tags for those links so your style isn't touching it.  Rewrite your tag to look like this.  <span id="unsubscribe">{tag_unsubscribe}</span>   .  That with the style code will solve your problem.

    Mark as:
  • Currently Being Moderated
    Apr 13, 2012 11:58 AM   in reply to VickiTuch

    No problem.  Glad to help.

    Mark as:
  • Liam Dilley
    6,693 posts
    Feb 28, 2012
    Currently Being Moderated
    Apr 13, 2012 3:23 PM   in reply to

    You need to do it properly though and the first post is very valid, do that all the time in emails.

    A number of email clients won't read <style></style>.

    Campaign monitor have a great guide on what CSS works:

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points