Horje
CSS question: how do I do link pseudo classes as inline styles? - Wordpress Solution
Idiot question, I know. I don't have time to look this up. I'm working on an HTML newsletter for a client, and all the CSS must go inline. I have something like:
<a rel="nofollow" style="color:#993;" href="http://codewi.se">Amazing website!</a>
How do I change the visited color? If this was a style sheet I would use: a:visited { color:#993; } but inline?

Solution - 1

I think you can embed


Solution - 2

Utkarsh is correct. However, to ensure compliance with more email clients, it should be:


<style type="text/css">
a:visited {color:#993;}
</style>
Even though you would normally implement code like this in the HEAD section of an HTML file, it will work if placed at the very top of your email's HTML source code.


Solution - 3

Looks like the answer is no, you can't: [[LINK href="http://stackoverflow.com/questions/5293280/css-pseudo-classes-with-inline-styles"]]http://stackoverflow.com/questions/5293280/css-pseudo-classes-with-inline-styles[[/LINK]]





Wordpress

Related
Reducing HTTP Requests for Javascript Files in  - Wordpress Solution Reducing HTTP Requests for Javascript Files in - Wordpress Solution
Semi-mega menu with only image on side - Wordpress Solution Semi-mega menu with only image on side - Wordpress Solution
Custom fields clear entries after 2nd time editing - Wordpress Solution Custom fields clear entries after 2nd time editing - Wordpress Solution
Different Custom Meta Fields on Multiple Custom Post Types - Wordpress Solution Different Custom Meta Fields on Multiple Custom Post Types - Wordpress Solution
Add loading animation to plugin - Wordpress Solution Add loading animation to plugin - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7