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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Amending attributes of a table cell

Status
Not open for further replies.

kimb

Technical User
Jun 30, 2002
39
0
0
NZ
Hi, I have a webpage with certain attributes for hyperlinks - a:active, a:hover etc. Is there any way that I can the attributes in a certain table cell different from all the rest on the page?

Thanks
Kim
 
Assign a "class" name to the table cell:

<td class=&quot;myClass&quot;></td>

And then in your style sheet you can apply the appropriate attributes:

.myClass{alink:red}

Hope that helps.
 
You could also create an inline style right at the HTML <a> tag:
<[element name] STYLE=&quot;[CSS property]:[property value]&quot;>

SAOK
 
That helps a lot - thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top