473,842 Members | 1,535 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 #1
36 3911
Peter Brause wrote:
my stylesheet shows different colors for visited, active and hovered
links. It works fine in IE 6,
That's suprising. Is IE 6 broken in this regard, too?
in Opera 7 the color for the active link (red background) is never
shown. Here is my code: (code optimization will be done later)
In the future, a url is better.
The CSS file:

a.menu01:link{ a.menu01:visite d{ a.menu01:active { a.menu01:hover {


The anchor pseudo styles are in the wrong order. It must be link,
visited, hover, active. (This is answered in the faq. Next time, check
the faq before posting in ciwas, and you'll get a faster answer.)

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
"Brian" <us*****@juliet remblay.com.inv alid> schrieb im Newsbeitrag
news:10******** *****@corp.supe rnews.com...
The anchor pseudo styles are in the wrong order. It must be link,
visited, hover, active.

No luck, problem with Opera remains.
Peter
Jul 20 '05 #3
"Peter Brause" <sa*********@ x-mail.net> wrote:
The anchor pseudo styles are in the wrong order. It must be link,
visited, hover, active.

No luck, problem with Opera remains.


Which of the words "In the future, a url is better." did you fail to
understand?

Changing the order _does_ affect the Opera behavior. What remains to be
seen is exactly how you tried (that is, the URL) and exactly what did you
expect "active link" to mean on Opera.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #4

"Jukka K. Korpela" <jk******@cs.tu t.fi> schrieb im Newsbeitrag
news:Xn******** *************** *****@193.229.0 .31...
Changing the order _does_ affect the Opera behavior. What remains to be
seen is exactly how you tried (that is, the URL) and exactly what did you
expect "active link" to mean on Opera.

OK, I understood and did some corrections.
You can see it at:
http://www.seyso.de/test050504/index.html
The links are in the left frame.
The css file is located at
http://www.seyso.de/test050504/css/sew1.css

The problem is: IE 6 shows the background color for the active link (white)
permanently, when the link is activated.
Opera shows this color only for a microsecond when clicking on the link.
TIA
Peter
Jul 20 '05 #5
Peter Brause wrote:
The problem is: IE 6 shows the background color for the active link
(white) permanently, when the link is activated.
Yes, IE does get thing wrong. I thought you said the problem was with Opera?
Opera shows this color only for a microsecond when clicking on the link.


That is what browser are supposed to do:

The :active pseudo-class applies while an element is being activated by
the user. For example, between the times the user presses the mouse
button and releases it.

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

Why are you using frames anyway? http://dorward.me.uk/www/frames/

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Jul 20 '05 #6

"David Dorward" <do*****@yahoo. com> schrieb im Newsbeitrag
news:c7******** ***********@new s.demon.co.uk.. .
Yes, IE does get thing wrong.

So, is there another method to show users in the navigation frame, where
they are?
Peter
Jul 20 '05 #7
Peter Brause <sa*********@ x-mail.net> wrote:
So, is there another method to show users in the navigation frame, where
they are?


If you get rid of the frames (which is a good idea anyway:
http://www.htmlhelp.com/faq/html/fra...rame-problems), then you
could modify the navigation panel link for the current page to (a) disable
the link (see item #10 at http://www.useit.com/alertbox/20031110.html), and
(b) change the appearance so that it's clear where the user is.

Or you could use some other "you are here" mechanism, such as breadcrumb
links.

With frames, you're stuck updating two frames at once, so that you can
replace the navigation frame with one modified as above, at the same time
that you replace the content frame. See
http://www.htmlhelp.com/faq/html/fra...#frame-update2
--
Darin McGrew, da***@TheRallye Club.org, http://www.TheRallyeClub.org/
A gimmick car rallye is not a race, but a fun puzzle testing your
ability to follow instructions. Upcoming gimmick car rallye in
Silicon Valley: Best in Show (Saturday, June 5)
Jul 20 '05 #8
JRS: In article <10************ *@corp.supernew s.com>, seen in
news:comp.infos ystems.www.authoring.stylesheets, Brian <usenet3@juliet re
mblay.com.inval id> posted at Sat, 8 May 2004 19:39:08 :
Here is my code: (code optimization will be done later)
In the future, a url is better.


Not necessarily so for those with off-line newsreaders, however.

(This is answered in the faq. Next time, check
the faq before posting in ciwas, and you'll get a faster answer.)

I've been reading the group for a little while, and that is the first
reference to a FAQ that I recall.

Is it posted here on a regular basis? Otherwise, how should one find
it?

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 20 '05 #9
On Sun, 9 May 2004, Dr John Stockton wrote:
In the future, a url is better.


Not necessarily so for those with off-line newsreaders, however.


Oh yes, even those, since the causes of problems are often not evident
from the mere content, but may be associated with HTTP headers,
redirections, CSS content-type, and all kinds of other matter which is
not evident if the plaintiff merely appends their actual data to a
news posting.

If the questioner actually -knew- what was relevant, they'd presumably
have solved their own problem already :-} The fact that they resorted
to posting here *should* mean that they exhausted other avenues of
investigation. As such, I'd say we need to see their problem in its
native habitat.

Those who choose to read the postings offline - and refuse to go
online to help with the investigations - would do better to stay
silent in such an enterprise, unless they have a *very* good hunch for
what was going wrong. IMHO and YMMV, natch...
Jul 20 '05 #10

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

Similar topics

6
15907
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
20232
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
1886
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
4121
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
2622
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
2821
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
3664
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
10945
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10614
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 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...
1
10674
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,...
0
10317
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 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...
0
9454
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, 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...
0
5697
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
5886
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4500
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
3
3146
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.