Forum Moderators: not2easy

Message Too Old, No Replies

inline hover and visited?

         

terrybarnes

12:16 pm on Nov 19, 2008 (gmt 0)

10+ Year Member



I'm creating an HTML email and am having to add things inline because gMail doesn't seem to like internal styles! Anyway, is there any way of adding hover and visited effects inline?

I've tried the following but it doesn't seem to work:

<a href="http://www.example.com" style="{color: #2aace2; text-decoration: underline;} :hover {color: #fff; background-color: #2aace2;} :hover {color: #2aace2; text-decoration: underline;}">

Any ideas?

[edited by: swa66 at 9:50 pm (utc) on Nov. 19, 2008]

swa66

9:48 pm on Nov 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That syntax is described in a WD (wroking draft) article for CSS3:
[w3.org...]

Browsers should not implement that yet AFAIK.

Javascript will not be enabled there either (or you would have found a security hole big enough to fly a jumbo through)

Even allowing visited to be differently rendered with inline styles would be a possible security hole, so I'd be careful using it if I'd found a solution.

terrybarnes

9:50 pm on Nov 19, 2008 (gmt 0)

10+ Year Member



So just stick with the standard text links for emails?