473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

58 New Member
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
2 2599
drhowarddrfine
7,435 Recognized Expert Expert
a.taskbarstyle:link { color:#888 }
a.taskbarstyle:active { color:#aaa }
Apr 4 '08 #2
Garima12
58 New Member
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

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

Similar topics

3
17061
by: Matt Adams | last post by:
As well known I could specify the text color in the body tag like: <BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE> What I want to achieve now is that always (!) the text of the last visited...
12
15302
by: jfburr | last post by:
very simple thing (I hope) I've got a css style sheet that starts like this: ______________ A:link { color: cc9933; }
5
2676
by: Janet | last post by:
The following html code appears in an ASP page. The hyperlink is set to white (see the page link color), but when the page renders in IE 6.0, it initially appears in maroon with a white border...
20
13776
by: Bob | last post by:
Hello, I have an <h1> banner that is white font on black background. I am using CSS to style the banner in white on black. I would like to hyperlink the words, but I want to force the...
6
2081
by: eswanson | last post by:
In jscript, I would like to be able to set the href attribute of the anchor element. I have a aspnet:hyperlink button on the page, but I would like to be able to set the href attribute of this...
3
1651
by: jarrett.roberts | last post by:
I am relatively new with C# and ASP.NET. I created an application using WinForms in which I have several hyperlinks. I want their position on the webpage to be determined (dynamically) based on...
4
5349
torquehero
by: torquehero | last post by:
hi, I am working with dreamweaver MX 2004. The problem is with Link colors (text). In page properties I have specified the link color, visited links, active links as #000000 and rollover links as...
0
2131
by: =?Utf-8?B?Um9nZXI=?= | last post by:
In my app I would like to change the color of the hyperlink from blue to purple when a user clicks the hyperlink in a RichTextBox. The DetectUrls property is set to True and I handle the...
2
1388
by: rpdavis | last post by:
I have a datagrid that includes editable colums as well as a hyperlink. When the user selects to edit a row in the datagrid, the text for the hyperlink disappears. When the grid is refreshed...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.