3.2.0

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.

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

<style>
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; }
</style>


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

This topic is archived.

See also:


Back to support forum