:: Forum >>

How to change font and color for visited linked cell

I am having problems to locate a solution that describes how to set styles for a linked cell (anchor pseudo classes).

We are using lots of tables with linked cells (URL links). The current default behavior is blue and underlined. I would like to have the usual linke behavior that an already visited link is in a different color (standard red).

Usually this is set with anchor pseudo classes:
a:link {color: #FF0000} /* unvisited link */
a:visited {color: #00FF00} /* visited link */
a:hover {color: #FF00FF} /* mouse over link */
a:active {color: #0000FF} /* selected link */


How do I set this in ActiveWidgets?
Andreas Guther
Wednesday, October 12, 2005
If the above code was copied from your page I see why it is not working. Replace the 'o' characters with '0' and ( replace o with zero) it should work as long as you are not creating specific anchor tags for a given cell.

a:link {color: #FF0000} /* unvisited link */
a:visited {color: #00FF00} /* visited link */
a:hover {color: #FF00FF} /* mouse over link */
a:active {color: #0000FF} /* selected link */



Jim Hunter
Wednesday, October 12, 2005
Interesting... the font that is used above shows a zero as a lower case O. My aplogoies to Andreas, it was not your mistake it is a problem with the display. So check to see if there are any other anchor settings in all of the CSS files for 2.0 to see if something is getting overwritten. Because if it is not getting overwritten your CSS should work. Try adding !important after each one to see if it helps.

a:link {color: #FF0000 !important} /* unvisited link */
a:visited {color: #00FF00 !important} /* visited link */
a:hover {color: #FF00FF !important} /* mouse over link */
a:active {color: #0000FF !important} /* selected link */
Jim Hunter
Wednesday, October 12, 2005
Thanks for the fast reply. As a matter of fact it works indeed.

I just did not realize that another, later included css file overwrites the settings.

Sorry for the noise.
Andreas Guther
Wednesday, October 12, 2005
Glad it's working. If you missed the CSS, so will someone else and your post might help the next person. Thanks for posting your findings.
Jim Hunter
Friday, October 14, 2005
Do I put this text into body tag?
Svetlana
Tuesday, April 11, 2006
Body or head, inside <style> block :-)
Alex (ActiveWidgets)
Tuesday, April 11, 2006

This topic is archived.


Back to support forum

Forum search