|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
simple css problem
I am trying to have 1 link a different color from the rest. This is the code can someone assit
+++++++++++++++++++++++++++++++++++++++++++ <style type="text/css"> <!-- .header { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; color: #003366; text-decoration: underline; TEXTAREA { background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black;} SELECT { background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black;} INPUT {background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black; font-weight:bold} a:link.toplink { color: #333333;} ++++++++++++++++++++++++++++++++++++++++++++++ I set the class here <p><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://cogimosearch.com/search_results.php?q=art&page=1"class="toplink">Arts</a><br> ++++++++++++++++++++++++++++++++++++++++++++++ Did I miss anything "class="toplink">Arts</a><br>a:link.toplink |
|
#2
|
||||
|
||||
|
just the wrong order
a.toplink:link |
|
#3
|
|||
|
|||
|
Still no luck
Hi
Thanks for the help it still did not work Any help would be appreciated <style type="text/css"> <!-- .header { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; color: #003366; text-decoration: underline; TEXTAREA { background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black;} SELECT { background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black;} INPUT {background: #b8ddee; font-family: arial; font-size: 8pt; border: solid 1px black; font-weight:bold} a.toplink:link { color: #333333;} --> </style> <p><font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://cogimosearch.com/search_results.php?q=art&page=1"class="toplink">Arts</a><br> |
|
#4
|
||||
|
||||
|
visited?
Are you sure that link hasn't been visited, cause you will need to clear your history to test it properly.
I'm, sure it doesn't matter but I put my class first.. <font color="#333333" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a class="toplink" href="http://cogimosearch.com/search_results.php?q=art&page=1">Arts</a> |
|
#5
|
|||
|
|||
|
I just copied your code and tried it in IE 6.0 and it works fine.
The only thing I can see that might be giving you trouble is that there should be a space between the URL and the class tag. |
|
#6
|
|||
|
|||
|
Hi
Thanks to everyone who helped. It is now working, Since I had already clicked (visited) it was not showing the correct color. Thanks again |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > simple css problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|