473,396 Members | 1,871 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.

IE6 prefers "visited" properties over "hover".

I'm having a problem with "a:visited" properties overriding "a:hover" ones - here's the relevant part of my CSS:

a.barra
{
position:absolute; top:30px;
font-family:century gothic;
padding:10px;
font-size:12pt;
font-weight:bold;
color:#4855A9;
text-decoration:none;
text-align:center;
opacity:.70;
filter: alpha(opacity=70);
-moz-opacity: 0.7;
}

a:hover.barra
{
font-size:13pt;
font-weight:bold;
text-decoration:none;
opacity:1;
filter: alpha(opacity=100);
-moz-opacity: 1.0;
}

a:visited.barra
{
font-size:12pt;
font-weight:bold;
text-decoration:none;
opacity:.70;
filter: alpha(opacity=70);
-moz-opacity: 0.7;
}

The links on the HTML (such as: <a href="tanques.html" class="barra" style="position:absolute; right:165;">membranas</a>) work right the first time - text grows and transparency dissappears on mouse hover. However, after that, the "hover" properties are simply ignored, in favor of the "visited" ones. There probably is a simple solution I'm missing, but right now I'm just plain stumped... anyone care to point me in the right direction, PLEASE?
Mar 29 '06 #1
1 4741
Heh... I knew it was easy... for anyone having a similar problem, just remember:

IE needs you to put your a:hover rule AFTER the ones for a:link and a:visited.
Mar 29 '06 #2

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

Similar topics

3
by: Matt Adams | last post by:
As well known I could specify the text color in the body tag like: <BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE> What I want to achieve now is that always (!) the text of the last visited...
7
by: LRW | last post by:
Below I'll paste my CSS and the HTML in question. But what's happening is, I'm trying to establish a link behavior for a class that's separate from the normal link class. I've established a: 's...
14
by: Don G | last post by:
Within the menu for my site, I have inserted 'class="current"' within the link for the current page. So the link looks somthing link: <li><a href="index.php" class="current">Home</a></li> The...
9
by: Max Weebler | last post by:
Hi, I have a datagrid built that has an alternating item style that sets the backcolor and ForeColor of its rows. I have 4 template columns. One of them has a LinkButton embedded in it to...
2
by: spifster | last post by:
Hello all, I am building a collapsable tree using Javascript with DOM in IE. In order to make collapsed cells disappear I have been hiding the text. The cells collapse but still leave borders...
4
Marty1963
by: Marty1963 | last post by:
I was 'playing' with rollover buttons in CSS, using an image background. Works beautifully ... until you click on the button. The 'visited' state stops the rollover effect. Can someone, with more...
1
by: Paul | last post by:
Below is the html and css. It works in Firefox but not IE. When you click on "Your Links", it should cause a new menu "system" to open up to the right of the "Your Links" with two menu options. ...
4
by: knkk | last post by:
I have style definitions that look like this: .a10b, .a10b a:link, .a10b a:visited, .a10b a:hover { font: 10px Arial; color: #000000;
2
by: BadFeeling | last post by:
Hi all, I have started with css some months ago, and though I'm feeling more and more safe and comfortable, some parts of css still don't make perfect sense to me. Right now I have this...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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,...

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.