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

Problem with link color...

Status
Not open for further replies.

CharlieIT

MIS
Apr 9, 2003
157
US
I have a stylesheet that looks like this...

.MainTop {
color: FFFFFF;
a:link, a:visited, a:active {
color:cyan }
background-color: #336699;
font-family: Verdana, Arial,;
font-size: 11 px;
font-weight: bold;
}

...but the color of the text hyperlinked stays black no matter what I do (I tried replacing "cyan" with "#FFFF33" to see if it would make a difference, and it does not). I KNOW that the tect is using the stylesheet, because if change the font size from 11 px to 28 px, the text size changes without any problems.

Am I doing something wrong?

 
you cannot nest styles like that

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

a:link, a:visited, a:active {
color:cyan }

is correct

<signature>
sometime you just gotta say &quot;WHAT THE @#*% !!&quot;
</signature>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top