:: Forum >> Version 2 >>

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{colorbluefont-size10pxfont-familyVerdana;}
.
aw-ui-link{colorbluefont-size10pxfont-familyVerdana;} 
but with no success....

What should I do???

Thanks, ciao.

Diabolik
Diabolik
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:

<style>
a:link {
  
colordarkgreen;
  
background-colortransparent; }
a:visited {
  
colorlightgreen;
  
background-colortransparent; }
a:hover {
  
colorgreen;
  
background-colorblack; }
a:active {
  
colorblack;
  
background-colorgreen; }
</
style
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!!
Diabolik
Diabolik
Wednesday, January 25, 2006



This topic is archived.

Back to support forum

Forum search