473,770 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

active link in IE 6 and Opera 7

Hello,
my stylesheet shows different colors for visited, active and hovered links.
It works fine in IE 6, but in Opera 7 the color for the active link (red
background) is never shown. How to explain this?
Here is my code: (code optimization will be done later)

1. The HTML file
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navigati onsframe</title>
<link rel="stylesheet " type="text/css" href="css/sew1.css">
</head>
<body style="backgrou nd-color:#D4D0C8">
<div align="center"> <p class="menutitl e">Inhalt</p>
<div class="menu01">
<hr width="170px" >
<a class="menu01" href="main.html " target="main">S tartseite</a>
<hr width="170px" >
<a class="menu01" href="Archivsei te.html" target="main">: : Archive</a>
<hr width="170px" >
<a class="menu01" href="Meinungss eite.html" target="main">M einungsseite</a>
<hr width="170px" >
<a class="menu01" href="Fotoseite .html" target="main">F otoseite</a>
<hr width="170px" >
</div><!-- class menutitle -->
</div><!-- align left -->
</body>
</html>

2. The CSS file:

a.menu01:link{
display:block;
width:170px;
text-decoration:none ;
text-align:left;
font:14px arial;
padding:2px 2px 2px 0;
margin:2px 1px 1px 1px;
border:1px white;
border-top-style:none;
border-bottom-style:none;
border-left-style:none;
border-right-style:none;
color:white;
background:grey
}
a.menu01:visite d{
display:block;
width:170px;
text-decoration:none ;
text-align:left;
font:14px arial;
padding:2px 2px 2px 0;
margin:2px 1px 1px 1px;
border:1px white;
border-top-style:none;
border-bottom-style:none;
border-left-style:none;
border-right-style:none;
color:white;
background:blue
}
a.menu01:active {
display:block;
width:170px;
text-decoration:none ;
text-align:left;
font:14px arial;
padding:2px 2px 2px 0;
margin:2px 1px 1px 1px;
border:1px white;
border-top-style:none;
border-bottom-style:none;
border-left-style:none;
border-right-style:none;
color:white;
background:red
}
a.menu01:hover {
display:block;
width:170px;
text-decoration:none ;
text-align:left;
font:14px arial;
padding:2px 2px 2px 0;
margin:2px 1px 1px 1px;
border:1px white;
border-top-style:none;
border-bottom-style:none;
border-left-style:none;
border-right-style:none;
color:white;
background:gree n
}

thanks for helping
Peter

Jul 20 '05
36 3898
On Thu, 13 May 2004 18:19:56 +0100, Dr John Stockton
<sp**@merlyn.de mon.co.uk> wrote:

[...fragments from previous posters...]
You might, indeed, even have been inadvertently thinking
of a different FAQ.No, but perhaps you were.

Indeed. By searching for the FAQ, I found a document headed "comp.infos
ystems.www.authoring.stylesheets FAQ v1.95" which I took to be the FAQ.
That is the "meta-FAQ" which was the first one to be written and it has
as its purpose to describe this newsgroup, not to address CSS authoring
issues.

Admittedly it contains some outdated material today, primarily I would
chose to drop Q&A's #7 and probably also #8 all together. On top of that
Q&A #5 needs an update, I suspect that I do have quite a bit of "link
rot" in there by now.
A meta-FAQ should never describe itself as a FAQ, and should have
_conspicuous _ links to any corresponding true FAQ.
For what its worth, the mFAQ was originally modeled after the guidelines
given in the document "FAQs about FAQs"...

http://www.faqs.org/faqs/faqs/about-faqs/

....and was first peer reviewed here in this NG in 1999 IMMIC.

At the same time I had a conversation with David Alex Lamb (a long time
*.answers moderator) who gave me a few extra suggestions about how to
finalize the mFAQ into an *.answers approved status.

As one example, the archive names...

Archive-name: www/stylesheets/newsgroup-faq
Archive-name: www/stylesheets/authoring-faq

....was suggested by David along with a few other formalia.
Moreover, it is the meta-FAQ which is stored in /www.faqs.org/
Any one who knows how to locate FAQ's for specific NG's at
/www.faqs.org/ would know how setup this following link...

http://www.faqs.org/faqs/by-newsgrou...ylesheets.html

You will find that both the mFAQ and the aFAQ are properly archived.
The situation is therefore most unsatisfactory, and the meta-FAQ needs
update to make the distinction clear at _all_ points within it,
including the news header, which includes
Archive-name: www/stylesheets/newsgroup-faq
What exact "distinctio n" needs to be made?
And I insist to say that the archive names are active and correct.
The actual FAQ may well need similar attention.
They both need to be updated, I fully agree with that.
Since a newsgroup FAQ should be responsive at least to what is
currently, rather than historically, asked in the newsgroup,
Well, from what started this it seems like the Q&A #9 in the aFAQ is not
really "historical ". The question about how to get :hover to "work" is a
real survivor I would say.
it will be of interest to see whether the maintainer sees these
remarks and posts a clarified version.
I'm very much alive as you may have found out now; also I do have a
solid reason as to why the content of the ciwas FAQ's has been
"neglected" for some period of time [1].
You have provided clear evidence supporting my belief that, whenever
a FAQ is cited as a source of advice, there is a need for one or both
of (a) an authoritative, direct, tested URL,
For this particular question about :hover, a pointer straight into the
CSS2.1 spec would have been sufficient...

http://www.w3.org/TR/CSS21/selector....pseudo-classes

....it's right there, in "brown on white" :-)
(b) a statement like "recently posted here".
Q&A #9 in the aFAQ came in there as a result of people trying to use
:hover in the first implementation that tried to support :hover

That was many years ago now, but still we find that those in need of an
explanation do not like to read specs to find an answer.
ISTM that it would help if a few of the regulars were to include the
current FAQ URL in their applicable sig files.


I used to post the _original_ text version of these two FAQ lists, twice
a week, to this NG but had to stop doing that at some time in 2002. I do
have the intention to update both lists and restart scheduled posting of
them.

[1] I was asked to take on the technical coordination, and later also
the site management, of a $40 million project for "North American
Stainless" in Kentucky US. That project kept me excessively occupied
from March 2002 until end of December 2003. There was no time available
to maintain FAQ lists for ciwas during that period of time, sad to say.

HAND

--
Rex
Jul 20 '05 #21
Jan Roland Eriksson <re*@css.nu> wrote:
For this particular question about :hover, a pointer straight into the
CSS2.1 spec would have been sufficient...

http://www.w3.org/TR/CSS21/selector....pseudo-classes
Quote:
"It will remain Candidate Recommendation at least until 1 September
2004.

"Publicatio n as a Candidate Recommendation does not imply endorsement
by the W3C Membership. It is inappropriate to cite this document as
other than work in progress."

...it's right there, in "brown on white" :-)

Jul 20 '05 #22
Dr John Stockton wrote:
Since a newsgroup FAQ should be responsive at least to what is
currently, rather than historically, asked in the newsgroup, it will be
of interest to see whether the maintainer sees these remarks and posts a
clarified version.


What's stopping you from offering a couple volunteer hours each week to
keep the FAQ up to date?
Matthias

Jul 20 '05 #23
On 14 May 2004 03:16:16 -0700, Wolfgang Wildeblood
<wo************ ****@yahoo.com. au> wrote:
Jan Roland Eriksson <re*@css.nu> wrote:
For this particular question about :hover, a pointer straight into the
CSS2.1 spec would have been sufficient...

http://www.w3.org/TR/CSS21/selector....pseudo-classes


Quote:
"It will remain Candidate Recommendation at least until 1 September
2004.

"Publicatio n as a Candidate Recommendation does not imply endorsement
by the W3C Membership. It is inappropriate to cite this document as
other than work in progress."


Yeah right... But read this from the CSS 2.0 spec:

"This document is currently not maintained. The CSS working group is
developing CSS 2.1. When features common to CSS2 and CSS 2.1 are defined
differently, please consider the definition in CSS 2.1 as errata for CSS2.
While CSS 2.1 is still a Working Draft, the errata are to be considered
proposed errata."

http://www.w3.org/Style/css2-updates...12-errata.html

At this moment, CSS 2.1 is much closer to what actually works in browsers
(and clearer, etc) then CSS 2.0.

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 20 '05 #24
"Rijk van Geijtenbeek" <ri**@opera.com > wrote:
On 14 May 2004 03:16:16 -0700, Wolfgang Wildeblood
<wo************ ****@yahoo.com. au> wrote:
Jan Roland Eriksson <re*@css.nu> wrote:
For this particular question about :hover, a pointer straight into the
CSS2.1 spec would have been sufficient...

http://www.w3.org/TR/CSS21/selector....pseudo-classes
Quote:
"It will remain Candidate Recommendation at least until 1 September
2004.

"Publicatio n as a Candidate Recommendation does not imply endorsement
by the W3C Membership. It is inappropriate to cite this document as
other than work in progress."


Yeah right... But read this from the CSS 2.0 spec:

"This document is currently not maintained. The CSS working group is
developing CSS 2.1. When features common to CSS2 and CSS 2.1 are defined
differently, please consider the definition in CSS 2.1 as errata for CSS2.
While CSS 2.1 is still a Working Draft, the errata are to be considered
proposed errata."


Oddly enough, my copy of CSS 2 says no such thing. Perhaps the
documentation on the W3C website has been sneakily altered, as tends
to happen from time to time.

And what does a phrase like, "This document is currently not
maintained," mean anyway? Not currently subject to continual review
and change? (a bit like the ciwas FAQ?) Perhaps those who like to push
the "standards" myth will one day get it through their heads that the
first requirement for a standard is not ease-of-use but *stability*.

At this moment, CSS 2.1 is much closer to what actually works in browsers
(and clearer, etc) than CSS 2.0.


Publication of a document that described the subset of CSS 2 that was
implementable and omitted the flights of fancy would have been useful,
had it been done in a timely manner. But CSS 1.5 (strangely named "CSS
2.1") has been dawdling along for years now, and is no more an
accurate description of what browsers actually do than CSS 2 is. (Most
browsers implement several features proposed for CSS 3.)

Or does, "This document is currently not maintained," actually mean
that W3C have recanted CSS 2 as a "recommendation " (or as their
apologists often claim, a "standard") . Is CSS 2 currently a W3C
recommendation, or is it not? If CSS 1 is superceded, CSS 2 recanted,
CSS 2.1 a "work in progress", and the various CSS 3 modules merely
proposals for experimental implementation, where then is the mythical
"standard"?

Where is the document describing the "standards compliant code" that
innocent passers-by to this newsgroup are frequently being harangued
for failing to meet?
Jul 20 '05 #25
On 14 May 2004 22:44:50 -0700, Wolfgang Wildeblood
<wo************ ****@yahoo.com. au> wrote:
"Rijk van Geijtenbeek" <ri**@opera.com > wrote:
On 14 May 2004 03:16:16 -0700, Wolfgang Wildeblood
<wo************ ****@yahoo.com. au> wrote:
> Jan Roland Eriksson <re*@css.nu> wrote:
>
>> For this particular question about :hover, a pointer straight into the
>> CSS2.1 spec would have been sufficient...
>>
>> http://www.w3.org/TR/CSS21/selector....pseudo-classes
>
> Quote:
> "It will remain Candidate Recommendation at least until 1 September
> 2004.
>
> "Publicatio n as a Candidate Recommendation does not imply endorsement
> by the W3C Membership. It is inappropriate to cite this document as
> other than work in progress."


Yeah right... But read this from the CSS 2.0 spec:

"This document is currently not maintained. The CSS working group is
developing CSS 2.1. When features common to CSS2 and CSS 2.1 are defined
differently, please consider the definition in CSS 2.1 as errata for
CSS2.
While CSS 2.1 is still a Working Draft, the errata are to be considered
proposed errata."


Oddly enough, my copy of CSS 2 says no such thing. Perhaps the
documentation on the W3C website has been sneakily altered, as tends
to happen from time to time.


The URL you snipped made clear this was the Errate to the CSS2, and the
quote applied to the Errata. Which means that the WG is no longer trying
to clearify issues in the CSS 2 spec, but instead only working on getting
CSS 2.1 out of the door. As this has now reached CR status, it means they
are almost done. This production was followed by a large crowd in the
www-style mailing list, which did not speed up the process.
And what does a phrase like, "This document is currently not
maintained," mean anyway? Not currently subject to continual review
and change? (a bit like the ciwas FAQ?) Perhaps those who like to push
the "standards" myth will one day get it through their heads that the
first requirement for a standard is not ease-of-use but *stability*.
At this moment, CSS 2.1 is much closer to what actually works in
browsers (and clearer, etc) than CSS 2.0.


Publication of a document that described the subset of CSS 2 that was
implementable and omitted the flights of fancy would have been useful,
had it been done in a timely manner. But CSS 1.5 (strangely named "CSS
2.1") has been dawdling along for years now, and is no more an
accurate description of what browsers actually do than CSS 2 is. (Most
browsers implement several features proposed for CSS 3.)


I think CSS 2.1 is a good base on which CSS 3 can extend in a more modular
manner. Yes, it would have been great if it had been ready a year ago. But
such discussions are not exactly fruitful.
Or does, "This document is currently not maintained," actually mean
that W3C have recanted CSS 2 as a "recommendation " (or as their
apologists often claim, a "standard") . Is CSS 2 currently a W3C
recommendation, or is it not? If CSS 1 is superceded, CSS 2 recanted,
CSS 2.1 a "work in progress", and the various CSS 3 modules merely
proposals for experimental implementation, where then is the mythical
"standard"?

Where is the document describing the "standards compliant code" that
innocent passers-by to this newsgroup are frequently being harangued
for failing to meet?


Browsers should (and do) indicate which standards they support, standards
don't support browsers.

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 20 '05 #26
On Sat, 15 May 2004 12:16:16 +0200, "Rijk van Geijtenbeek"
<ri**@opera.com > wrote:
The URL you snipped made clear this was the Errate to the CSS2, and the
quote applied to the Errata. Which means that the WG is no longer trying
to clearify issues in the CSS 2 spec, but instead only working on getting
CSS 2.1 out of the door.


Er, The W3C Process specifically requires Working Groups to track,
clarify etc. issues raised against the specification, if they're
really not going to do this, they should ask the director to rescind
the recommendation, as they clearly believe it to be so broken as to
not be worth maintaining.

There is a flaw in the process document is that there's no time limit
specificied on responding to issues (so they can just ignore them
forever into the future) but hopefully that'll be fixed one day...

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #27
"Rijk van Geijtenbeek" <ri**@opera.com > wrote:
The URL you snipped made clear this was the Errate to the CSS2, and
the quote applied to the Errata.
So we have a CSS 2 specification, which refers to its Errata, which in
turn makes an obscure reference to CSS 2.1 and then says it's a draft and
should be considered as "proposed errata".

The question remains whether there is a W3C Recommendation on CSS (except
CSS 1). The CSS 2.1 contains substantial _changes_ to CSS 2.0, thereby
making CSS 2.0 itself a mixture containing things that are just
"proposed". Take any issue where the text of CSS 2.0 and the CSS 2.1
draft disagree. Today, it resolves according to the current CSS 2.1
draft. Tomorrow, CSS 2.1 draft might say something quite different on the
issue. We could alternatively say that CSS 2.0 keeps changing. Nobody can
honestly claim conformance to it, except by referring to its state on a
given moment of time.
Which means that the WG is no
longer trying to clearify issues in the CSS 2 spec,
Errata aren't for clarifying issues. They are for reporting observed
typos and similar errors in documentation (roughly the way
http://www.rfc-editor.org/ maintains the RFC system, _without_ taking any
liberties in deciding that some definition was an "error" and "fixing" it
on a rainy afternoon).

But I think this has been explained and ignored on the www-style list, so
I can just state that the answer is that the CSS 2 "specification" , far
from being a standard, is a vague collection of ideas and rules that may
change at any moment without prior or posterior notification. The
reference to CSS 2.1 itself is just something that someone put into the
"Errata" at some point. It could be removed or changed today.
but instead only
working on getting CSS 2.1 out of the door. As this has now reached
CR status, it means they are almost done.
Let me guess... it will have its own Errata, which will contain a
cocktail of specific corrections of typos, actual changes to the rules,
and vague notes about something that needs revision.
Browsers should (and do) indicate which standards they support,


They cannot, unless there are standards. You cannot claim support to a
moving target. If a "specificat ion" requires A today and B tomorrow and A
and B are two different renderings of the same construct, you can't make
a browser conform.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #28
On Thu, 20 May 2004 23:21:08 +0000 (UTC), Jukka K. Korpela
<jk******@cs.tu t.fi> wrote:
"Rijk van Geijtenbeek" <ri**@opera.com > wrote:


...
Browsers should (and do) indicate which standards they support,


They cannot, unless there are standards. You cannot claim support to a
moving target. If a "specificat ion" requires A today and B tomorrow and A
and B are two different renderings of the same construct, you can't make
a browser conform.


What should the WG do? Make dozens of CSS 2.x subreleases, one for each
time something comes up that needs clarification or appears to be designed
badly? Try to create the perfect spec before setting it free? CSS 2.0 was
too ambitious, but at the time it came out the WG was not receiving much
feedback on the www-style mailinglist. With CSS 2.1, they try to create
something more solid, and that is why it takes so much time. There is also
a large number of proposed CSS 3 modules for continued development of CSS.
There is little reason to suspect that CSS 2.1 will need lots of errata
(of the bad kind).

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
Jul 20 '05 #29
On Fri, 21 May 2004 16:56:28 +0200, "Rijk van Geijtenbeek"
<ri**@opera.com > wrote:
On Thu, 20 May 2004 23:21:08 +0000 (UTC), Jukka K. Korpela
<jk******@cs.t ut.fi> wrote:
They cannot, unless there are standards. You cannot claim support to a
moving target. If a "specificat ion" requires A today and B tomorrow and A
and B are two different renderings of the same construct, you can't make
a browser conform.
What should the WG do? Make dozens of CSS 2.x subreleases, one for each
time something comes up that needs clarification or appears to be designed
badly?


Rescind it, or at the very least don't change it with Erratas.
Try to create the perfect spec before setting it free? CSS 2.0 was
too ambitious, but at the time it came out the WG was not receiving much
feedback on the www-style mailinglist.
Did it have 1 implementation of every feature?
With CSS 2.1, they try to create
something more solid, and that is why it takes so much time.


Sure, it's all too ambitious, but that means, stop being so ambitious
and do what you can with the resources you have available.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #30

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

Similar topics

6
15900
by: Carla | last post by:
hi people, I have a little problem that I can't solve with css and i was wondering if you could help me. I have 4 links, I want that when I click/mouseover in the link 1, it turns to a color a, then when I click/mouseover over the link 2, it turns to a color b and the link 1 turns to the normal link color again. (an so with the other links). Is this possible with CSS?
4
20228
by: crhaynes | last post by:
I'm having trouble with my CSS. My links are black, my hover is orange and my active link is red. When I select a link it turns red but i does not retain that color when the selected page loads. Is i possible to retain that color? My navigation that i'm trying to get this corrected on is server-side include
2
1881
by: paulmac106 | last post by:
Hi, I have a menu control that has two Menu choices One is "View History Items" the second is "PDA" My problem is as you roll the mouse over the menu options, the second one works only if your mouse is actually over the text "PDA". Since it
1
4116
beacon
by: beacon | last post by:
I'm looking to reset the visited link color once another link is selected. Also, once that link takes me to a particular page, I want the font-weight for that page to be bold to indicate that it's the page you're looking at. Now, if the links have never been visited before, they are blue. If you hover over the links they turn light blue. I want the user to be able to select the link and it take you to that page. On that page, I want the link...
2
2617
by: Garima12 | last post by:
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: <BODY class="TaskbarStyle" TEXT="Black" bottommargin="0" centermargin="0" rightmargin="0" topmargin="0"> code of stylsheet which contains TaskbarStyle class; .TaskbarStyle { ...
1
2818
by: Sarah Hammond | last post by:
Hello There, I am using jquery Spry Sliding panels for a new site i am working on. I am looking to style similarly to this example in particular I am trying to find a way to give the navigation links (which will eventually be imgs) an active state (whichever link is currently selected-I wish it to have a different image and same for mouseover) as on the coda website. I'm quite new to javascript, and having read similar articles on the forum...
1
3659
Fary4u
by: Fary4u | last post by:
using asp while condition how can i write perticular link as a selected value ? <a class="mainlevel" href="p.asp?strCat=<%= strcat%>"> <%= strcat %></a> using CSS style sheet
0
9453
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10036
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,...
1
7451
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
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();...
0
5354
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
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 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...

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.