[thelist] Changing Link Colors In Site

John Stoneham lyric at lyrically.net
Wed Oct 16 17:03:00 CDT 2002


> > If I have a table layout with 3 columns and want my link colors to be
> a
> > certain color in one column and a different color in the other two,
> how and
> > where do I specify them?
>
> Your best bet will be to assign classes to the respective TDs and
> pseudo-class selectors.
>
> td.column1 a:link {}
> td.column1 a:visited {}
> td.column1 a:hover {}
> td.column1 a:active {}

Easier way:

tr.column1 a:link {}
tr.column1 a:visited {}
tr.column1 a:hover {}
tr.column1 a:active {}

That way you can put the class attribute on the <tr> tag instead of on
every <td>.

- John Stoneham




More information about the thelist mailing list