Reply LinkBack Thread Tools Search this Thread
Old 12-07-2004, 10:46   #1 (permalink)
strawbleu
Senior Member
 
strawbleu's Avatar
 
Join Date: May 2004
Location: Leeds, UK
Posts: 273
Send a message via MSN to strawbleu
CSS :: defining 'hover' thru style=

Ok, I am sure this is really bad CSS, however to please a client I am building an Outlook editable HTML signature and to do this it seems that all style elements need to be applied as style="" on the HTML tags.

1) Does anyone know a way around this
2) If not; can you user 'hover' within a style="" attribute - and how do you do it?

Cheers, Jon
__________________
Jon Eland :: StrawBleu
Web evangelist, photographic imagemaker and all-round good egg.
  Reply With Quote
Old 12-07-2004, 11:05   #2 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
1) No
2) No
  Reply With Quote
Old 12-07-2004, 11:35   #3 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
It's not possible. You'd have to use javascript for an inline hover effect - but it won't work in outlook.

Code:
<a href="#" onmouseover="this.style.color='red';" onmouseout="this.style.color='blue';">Link</a>
  Reply With Quote
Old 12-07-2004, 14:02   #4 (permalink)
adras
Zły
 
adras's Avatar
 
Join Date: May 2004
Location: Toronto, Canada
Posts: 2,001
Send a message via MSN to adras
Save you signiture as an HTML file, and then in Outlook you can use an HTML file as the signiture. You can have the <style> tag in the head of the document of your HTML file...that should work but I've never tired it though.
__________________
  Reply With Quote
Old 12-07-2004, 14:38   #5 (permalink)
strawbleu
Senior Member
 
strawbleu's Avatar
 
Join Date: May 2004
Location: Leeds, UK
Posts: 273
Send a message via MSN to strawbleu
You would think so, wouldn't you?

Well for anyone else with this problem - it appears that, for some reason, Outlook only seems to pay attention to styles applied using the style="" method and not by creating either DIVs, SPANs or using class="".

I am happy to be proven wrong on this, but I've ended up using a signature to creeat my emails, and then deleting the insert CRs prior to editing.

If someone has a 'this is how you build Outlook friendly html formatted templates tutorial' then I'd be over-joyed to read it!

Cheers, jon
__________________
Jon Eland :: StrawBleu
Web evangelist, photographic imagemaker and all-round good egg.
  Reply With Quote
Old 20-07-2004, 08:36   #6 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
Have you seen this?

http://www.alistapart.com/articles/cssemail/

not sure if it'll do hovers, but he does mention :link so...
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8