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. 3 2515
On Mon, 14 Jun 2004 11:29:20 GMT, Bart Lateur <ba*********@pa ndora.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.
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.
On Mon, 14 Jun 2004 19:25:47 GMT, Bart Lateur <ba*********@pa ndora.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 question, is it possible to alternate
the row colors automatic and have it created from a list of URL's?
|
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 site deficient as I have not messed with link colors?
Does Nielsen address why all this can't be left up to the browser?
Are link colors supposed to be special, like background images, to make
a big impression?
|
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 colors:
document.getElementById("link1").style.color='lime'
document.getElementById("link2").style.color='lime'
|
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 defined,
override external style sheet references, definitions in the HEAD
section.
I won't know ahead of time what exactly the webpage content is.
Thanks,
Brett
|
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">
However, I would like to use xhtml with css. In css-file I have the
next line:
| |
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 ListView.Items.Add(), . I see
that it is a virtual method so it should be easy to do. If anyone can help I
would appreciate it greatly. I can do what I need to do in a different way
this would just make everything significantly cleaner and eaasier...
|
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 site with a CSS containing as its first lines:
A:link
{
COLOR: #006633;
BACKGROUND-COLOR: transparent;
|
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 #0066cc. Now I click on apply, OK and then I save the file. When I preview it in the browser (IE6), the links are gray..i.e, #666666. The text which does not contain a hyperlink accepts whichever color I set it to. But "the links" are really...
|
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 trouble
trying to override the main stylesheet on the pages it effects. Can
anyone point me in the right direction? Thanks!
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |