473,396 Members | 1,779 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,396 software developers and data experts.

How to override changed colors in links

I want my links to look the same as the surrounding text. Can I do that
without explicitely specifying the color to be used? What I'd really
want to do, is disable the automatic override in links, specifically for
the color, and just inherit the original color.

The next appears to work on Firefox, but not in MSIE:

a.plain {
text-decoration: none;
color: inherit;
}

Is there a way that will work on the common browsers?

p.s. In case you want to know why: I'm making a user interface in HTML,
where a) most of the text on a page is a link, and b) The user will soon
enough have visited almost every link anyway, and still keep on using
it. So there really is no use at all for the clown pants effect.

--
Bart.
Jul 20 '05 #1
3 2503
On Mon, 14 Jun 2004 11:29:20 GMT, Bart Lateur <ba*********@pandora.be>
wrote:
I want my links to look the same as the surrounding text. Can I do that
without explicitely specifying the color to be used? What I'd really
want to do, is disable the automatic override in links, specifically for
the color, and just inherit the original color.

The next appears to work on Firefox, but not in MSIE:

a.plain {
text-decoration: none;
color: inherit;
}

Is there a way that will work on the common browsers?

p.s. In case you want to know why: I'm making a user interface in HTML,
where a) most of the text on a page is a link, and b) The user will soon
enough have visited almost every link anyway, and still keep on using
it. So there really is no use at all for the clown pants effect.

Colors are set by default by the UA. You set the a element, but the rule
of cascade means a:link will overrule, and that's what's blue, you see.

If you use -- a:link.plain, a:visited.plain, a:hover.plain, a:active.plain
{style} -- it should work.
Jul 20 '05 #2
Neal wrote:
If you use -- a:link.plain, a:visited.plain, a:hover.plain, a:active.plain
{style} -- it should work.


Same effect: works in Firefox, not in MSIE 5.5/6.0

--
Bart.
Jul 20 '05 #3
On Mon, 14 Jun 2004 19:25:47 GMT, Bart Lateur <ba*********@pandora.be>
wrote:
Neal wrote:
If you use -- a:link.plain, a:visited.plain, a:hover.plain,
a:active.plain
{style} -- it should work.


Same effect: works in Firefox, not in MSIE 5.5/6.0

Post a URL to a test case. It is possible you've set something in IE (I
know some browsers allow this, not sure about IE) which will override
author style sheets with regard to links. Otherwise, there's something
else wrong.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: aznFETISH | last post by:
I have a list of links that I ue on my page, I alternate background colors for these links in a table, I usually do it using a DB but this list of link is manually added into the page so my...
5
by: Dan Jacobson | last post by:
What's Nielsen talking about in http://www.useit.com/alertbox/20040503.html http://www.useit.com/alertbox/20040510.html Can't a good browser keep track of visited vs. unvisited link colors? Is my...
9
by: michael | last post by:
I have many links on a page, but for example sake, these two: <a href="bla1.html" id="link1">bla1</a> <a href="bla1.html" id="link2">bla1</a> I use a Javascript function to change the link...
11
by: brett | last post by:
If I want all text, no matter where it is, to be gray, is there a way to override styles and have that color take affect? It would need to override DIVs, tables, SPANs, anywhere inline styles are...
19
by: opt_inf_env | last post by:
Hello all, I know that in html to set colors of visited and activ links one need to use line in the following format: <BODY text="#FF0000" link="#0000FF" alink="#FFFF00" vlink="#00FF00"> ...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
9
by: Richard | last post by:
Please hlep with a very frustrating problem. I need to be able to have a reference to my "btcopyrights" CSS class override the link colors first specified earlier in the CSS. I inherited a large...
4
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...
2
by: jessicalgaudette | last post by:
I have been asked to change some background colors in a website that use a masterpage. This only effects 6, with each set of 2 using a different stylesheet of the many web pages, but I am having...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.