Forum Moderators: not2easy
I use a free mailing list service to deliver my html newsletters, but they strip my <head> tags completely, forcing me to do all my CSS coding inline.
The first problem I came across during my recoding is that the "hover code" is not recognized when using CSS to define the properties of a link. Here's an example:
href="http://xxxxx" style="link, visited, active {font: 11px geneva, verdana, arial, sans-serif; color: #8BC7FF; text-decoration: none;} hover {font: 12px geneva, verdana, arial, sans-serif; color: #FF0000; text-decoration: none;}
"
When I remove the hover syntax it works fine, but with it it bombs out. Is it possible to use the hover feature inline, or will it only work as defined within the <head><style>...</style></head> tags?
Again, the caveat being that I only tested this in IE6 and Mozilla... not in any email application.
When using inline styles like this in emails you have to remember to apply they styles actually in the body as well (so its no good defining td, tr, p etc in the head). I.e. you have to go <span class="whateveryourclassis"> for every single thing you've defined- otherwise your inline styles will be overrided by the email provider's (say hotmail or yahoo's) own stylesheet.