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

Hyperlinked Text Color in Stylesheets... 1

Status
Not open for further replies.

CharlieIT

MIS
Apr 9, 2003
157
US
I am using a stylesheet to define the font and background color of a cell in a table. The font color is white. However, when I turn any of the text in the cell to a hyperlink, the text becomes black and disappears in the background color.

My question is: In the stylsheet, can I set the color of hyperlinked text? If so, how?

Here is the section of the stylesheet asigned to control the table cell:

.SkinMainTop {
color: #FFFFFF;
background-color: #336699;
font-family: Verdana, Arial,;
font-size: 11px;
font-weight: bold;

 
a:link, a:visited {color:red; text-decoration:none;}
a:hover {color:blue;}

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
ChrisHunt found:

(see thread215-651154 for a .pdf version too)

All you ever wanted to know about CSS (the standard, browsers can't quite do it all right yet).

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top