468,301 Members | 1,477 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

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

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. }
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?
Apr 4 '08 #1
2 2306
7,435 Expert 4TB
a.taskbarstyle:link { color:#888 }
a.taskbarstyle:active { color:#aaa }
Apr 4 '08 #2
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.

Similar topics

12 posts views Thread by jfburr | last post: by
20 posts views Thread by Bob | last post: by
reply views Thread by =?Utf-8?B?Um9nZXI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.