473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

a tag properties

40
Hi all

I want that the color of the link should remain when we click on that link (Active) as of the hover color. Suppose links are of blue color and when we hover then the color will be red and if we click on that link it should remain red and the others will still blue.

I used :active but it does not work properly, :visited we can't use as all the links we click will be red.

Please let me know the options we can use.

thanx
May 8 '08 #1
8 1920
drhowarddrfine
7,435 Expert 4TB
You can't use the tools for that purpose so I can't think of any other way.
May 8 '08 #2
Hi frnd
You'll use a:hover in css. For example a{color:blue;} a:hover{color:red;}
Try the way Best Wishes
Hi all

I want that the color of the link should remain when we click on that link (Active) as of the hover color. Suppose links are of blue color and when we hover then the color will be red and if we click on that link it should remain red and the others will still blue.

I used :active but it does not work properly, :visited we can't use as all the links we click will be red.

Please let me know the options we can use.

thanx
May 16 '08 #3
Death Slaught
1,137 1GB
If you want the link to remain a constant color no matter what then just use this:

Expand|Select|Wrap|Line Numbers
  1.  a { 
  2.   color:#000;
  3. }
  4.  
Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 16 '08 #4
Death Slaught
1,137 1GB
Hi frnd
You'll use a:hover in css. For example a{color:blue;} a:hover{color:red;}
Try the way Best Wishes
Nanaveraa please do not shorten words while responding or posting in a thread.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 16 '08 #5
harshmaul
490 Expert 256MB
continuing from death....

underlying anchor tags
Expand|Select|Wrap|Line Numbers
  1. a{
  2. color:#ff0000;
  3. }
when anchors are hovered over
Expand|Select|Wrap|Line Numbers
  1. a:hover{
  2. color:#ff0000;
  3. }
when you've been to the page a achor points to
Expand|Select|Wrap|Line Numbers
  1. a:visited{
  2. color:#ff0000;
  3. }
one that is waiting for the page or service it points to, to responsd
Expand|Select|Wrap|Line Numbers
  1. a:active{
  2. color:#ff0000;
  3. }
May 16 '08 #6
Death Slaught
1,137 1GB
Isn't there a technical name for them psuedo something right?

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 16 '08 #7
Death Slaught
1,137 1GB
Just couldn't remember that second word (classes *inserts into brain*).


Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
May 16 '08 #9

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

Similar topics

2
by: Rick Austin | last post by:
I recently had to perform a reinstalltion of Windows XP (my registry seems to have become corrupt). After this completed I had to reinstall all applications since most use the registry for settings,...
4
by: Lyn | last post by:
Hi, This question may seem a bit academic... To learn more about Access VBA, I have been enumerating the properties of various form controls. This was mostly successful and I have learned a lot...
10
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a...
6
by: JerryP | last post by:
Hello, is there a way to launch the property dialogue for a directory from my c# app ? I would also like to launch the User Account Properties from Active Directory Users and Computers, and the...
3
by: Martin Montgomery | last post by:
I have, for example, a property called myProperty. I would like, when using a property grid to display the property name as "My Property". Is this possible. Is there an attribute etc Thank ...
7
by: Donald Grove | last post by:
Is it possible to retrieve field properties from a table in access2000 using code? I have tried: " dim dbs as dao.database dim tbl as dao.tabledef dim fld as dao.field dim prop as...
1
by: Christophe Peillet | last post by:
I have a CompositeControl with two types of properties: 1.) Mapped Properties that map directly to a child control's properties (ex.: this.TextboxText = m_txt.Text). These properties are handled...
7
by: Anderskj | last post by:
Hi! I am developing a c# application. I have a interface (which can change therefore my problem) If i do like this: List<PropertyInfoproperties = new List<PropertyInfo>();...
0
by: =?Utf-8?B?UmljayBHbG9z?= | last post by:
For some unknown reason (user error?), I cannot get a NameValueCollection to persist in the app.config file. Unlike other settings, I cannot get the String Collection Editor GUI to allow my to...
4
by: FullBandwidth | last post by:
I have been perusing various blogs and MSDN pages discussing the use of event properties and the EventHandlerList class. I don't believe there's anything special about the EventHandlerList class in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.