:: Forum >>

How to set link styles

Hi Alex,

what if I don't want to use any function in order to set a link (obj.setCellLink), but just pass data where one of the cell values contains <a href=.....?

That means, I cannot determione in advance that a cell is a link, as I want to pass data from PHP, so cannot derive easily afterwards whether a cell contains a link or not.

If I pass the value containing the HTML code for <a>, the style of that cell is set al Times New Roman, 14px, black!! (horrible)

I have tried to explicitly set:

.aw-templates-link{color: blue; font-size: 10px; font-family: Verdana;}
.aw-ui-link{color: blue; font-size: 10px; font-family: Verdana;}

but with no success....

What should I do???

Thanks, ciao.

Tuesday, January 24, 2006
Both of those CSS classes cover AW generated links. You will need to change the standard <A> tag style for the page:

a:link {
color: darkgreen;
background-color: transparent; }

a:visited {
color: lightgreen;
background-color: transparent; }

a:hover {
color: green;
background-color: black; }

a:active {
color: black;
background-color: green; }


modify the colors to suit your mood. The order of the items is important, I suggest using the above order.
Jim Hunter
Tuesday, January 24, 2006
Thanks Jim!!
Wednesday, January 25, 2006

This topic is archived.

Back to support forum

Forum search