Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS: Anchor styles

Status
Not open for further replies.

cid

Programmer
Jan 4, 2001
18
US
I have a stylesheet for the page that I'm working on, which defines styles for the anchor tag. Well, I've got got a table data item which needs to have different colors for the anchors. How can I do this? I put a class on each of the links w/in the td, but that's not making use of the hover. I was wondering if there's a better way of doing it. I think you can make a style for something which is a child of something else, but I don't know how to do that, exactly.

Any help is appreciated. Thanks in advance.

~[ cid ]~
 
this works, makes all links in the table hover with yellow, all others, red:

<style>
a:hover {color:red}
td a:hover {color:yellow}
</style>
</head>

<body>
<a href=&quot;#&quot;>dsads</a>
<table>

<tr>
<td><a href=&quot;#&quot;>dsads</a></td>
</tr>

</table>
</body> jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top