CSS problem

Hello,

I am pulling the CSS information from db1.nsf, which has one of the document created with a key named, Key1. Key1 document has following css information within db1.nsf,

.input {font-family: Verdana, Helvetica, sans-serif; font-size: 10px; Aliasing:none; color: #00000; border-color: #333333 #CCCCCC #CCCCCC black; link: color: #ff0000; visited: {color: #0000ff}; hover: {background: #66ff66} };

I am calling this css from db1.nsf in to one of the form form1.

In form1, Field1 is computed for display, and has following code.

db := @ReplaceSubstring(@Subset(@DbName;-1); “\”:" “;”/“:”+");

TargetURL := “http://ip/db2.nsf”;

TargetFrame := “framename”;

sLookupText := “lookupvalue”;

AltTag := “alttag”;

“[<A HREF="”+TargetURL+“" target="” + TargetFrame + “" title="” + AltTag + “" >”+sLookupText+“]”

I have coded like this, Field1 .

I am able to control the font size and color, but some how the “hover” and visited link does not work?

Any idea where am i going wrong?

Is there a way that I can call class within formula where it is composing a link?

Thanks in advance

MS

Subject: CSS problem

If you are using this as an href tag you need to name the pseduo class accordingly.

Right now it does not know what class to assign the visited and hover to.

Check out the link below

Also, it looks like you are not using all of the attribute properly, you have

link: color: #ff0000

this is not correct. Also you are not telling the border how wide to be. ie, 1px or what type of line.

Your class should look something like this:

a.input{

font-family: Verdana, Helvetica, sans-serif;

font-size: 10px; Aliasing:none;

color: #00000;

border: #333333 #CCCCCC #CCCCCC black 1px solid;

color: #ff0000;}

a.input:visited {

color: #0000ff;}

a.input:hover {

background: #66ff66;}