Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying Style in MS Outlook

Status
Not open for further replies.

TomDavies

Programmer
Jul 10, 2001
8
GB
Hi,

I am trying to apply the "hover" attribute to a link which is located in a signature file.
Normally I would control this using an external style sheet, or style rules set out in the header section of the html document, however outlook does not appear to support these.
I next looked at in-line styles, but am unable to make these work too. I can apply styles to the basic link, e.g.
<a style=&quot;...&quot; ...> but how can I apply the hover attributes?
Anyone out there have any ideas?
Cheers,
Tom.
 
that might not be the solution
however why not considering using instead a &quot;mouseover code&quot;
even some JS ?
 
Hello TomDavies!

I just tried to do it using Outlook Express and it worked. Here is an example code:

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML><HEAD>
<META content=&quot;text/html; charset=koi8-r&quot; http- equiv=Content-Type>
<META content=&quot;MSHTML 5.00.2920.0&quot; name=GENERATOR>
<STYLE>
A:link { TEXT-DECORATION: none }
A:hover { TEXT-DECORATION: underline }
</STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<P><A href=&quot;aaa&quot;>aaa</A></P>
<P><A href=&quot;bbb&quot;>bbb</A></P>
</BODY></HTML>

I don't work with Outlook but I think it works the same. Try it.

Good Luck!
 
Keypounder:
Thanks - if I am unable to fix this then that may be the way to go.
Eugene:
Strange - I created a new sig file based on your code in both Outlook Express and Outlook and it worked in neither!
What version of OE are you running? I'm on 5.0. This is what I thought would work originally, but it doesn't seem to like me!
Thanks,
Tom.
 
Hello TOM
keep your 5.0, I have a 5.5 and won't upgrade for most users utilize NN4.7 and IE 5...
we have some limitations
but it is making the code readable by most browsers .
 
TomDavies,

I'm not sure that understand you.
What &quot;signature file&quot; do you mean?
 
Hi Eugene,
Thanks for persevering with me!
The signature file I have been trying to create is one that can be appended to my e-mails which just has my name phone no e-mail address, and a url (these are the links in question).
This can then be added automatically to each e-mail that I send.
I am able to apply any in-line styles to this file, but cannot apply CSS as you suggested - which is how I would normally do this.
It may just be a limitation of the version that I am using that prevents me from defining CSS rules in the head section, which is why I tried (unsuccessfully) the in-line.
Thanks for your help!
Tom.
 
OK Tom,

what I would do in this case is create some template that has all necessary information and use CSS to change links view.
That's what I do.

Good Luck, Tom!
 
I think that is what I'm trying to do! I create the file which is automatically appended, and that works fine. It's only when I try to apply CSS that I fall foul of the problem.

The crux of my problem is that I don't actually know if it is possible to use a hover style when applying the styles in-line!! I have looked on the web, but cannot find a guide for the syntax as most people (sensibly!) use external style sheets or specify styles in the head section as you suggest.

Do you know any good references that might help here?

Thanks,

Tom.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top