By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,058 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,058 IT Pros & Developers. It's quick & easy.

change the color of hyperlink as well as their active link color

P: 58
There is htm page. In its body I am calling a class from stylesheet called TaskbarStyle(classname). Now I want to change the color of hyperlink in this page as well as their active link color. I am calling 2 stylesheets on this htm page.

code of htm page:
Expand|Select|Wrap|Line Numbers
  1. <BODY class="TaskbarStyle" TEXT="Black" bottommargin="0" centermargin="0" rightmargin="0" topmargin="0">
code of stylsheet which contains TaskbarStyle class;

Expand|Select|Wrap|Line Numbers
  1. .TaskbarStyle
  2. {
  3.     background-color: #2F5675; 
  4.     font-weight: bold; 
  5.     font-size: 8pt; 
  6.     color: white; 
  7.     font-family: Verdana, Sans-Serif, Arial;
  8.     background-image: url(images/blue-gradient-30x1.gif);
  9.     background-repeat: repeat-x;
  10. }
  11.  
another stylsheet is containing body etc.
I guess I should write link specifications in this other stylsheet.
can you please tell me how can I modify the link color n active link color?

I think I should write like:

Expand|Select|Wrap|Line Numbers
  1. A.TaskbarStyle
  2. {
  3.     FONT-SIZE: 11px;
  4.     COLOR: #ffffff;
  5.     FONT-FAMILY: Tahoma, Helvetica, sans-serif
  6. }
  7. A.TaskbarStyle:active
  8. {
  9.     COLOR: #ff0000;
  10. }
I don't know this is right or not but I m not getting desired result. Can u please guide me?
thks
Apr 4 '08 #1
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
a.taskbarstyle:link { color:#888 }
a.taskbarstyle:active { color:#aaa }
Apr 4 '08 #2

P: 58
this works in ie7 or not because i tried this but its not working.
in firefox , atleast it changes color in mouse over but does color active link.
Apr 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.