469,281 Members | 2,487 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,281 developers. It's quick & easy.

CSS link rollover bug in IE 5 Mac

DM
For the sake of anyone doing a Google Groups search who encounters this bug and
is looking for a workaround, I wanted to post what I've found.

If you have pseudo class selectors...

a {
....
}
a:hover {
....
}

....to create a rollover effect, in IE 5 for the Mac it can cause the element,
such as a p or h1, h2, etc. that has the link in it, to spring out to a wider
size. You roll over and the hover effect occurs, then you roll off and the hover
effect goes away, but the element suddenly occupies more horizontal space and
everthing reflows.

I've seen this also happen in other browsers in the past. I did a search and
found reports of similar bugs, though not exactly the same. (Try searching on
"text shift left hyperlink" and "jumping links bug".)

The solution I found was to make sure to only change *color*, and not to add or
remove things. For example in the "a" selector, don't have no background and
then add a background in the "a:hover" selector.

As another example, this works:

a {
border-bottom: solid 1px #333499;
color: #333499;
text-decoration: none;
}
a:hover {
border-bottom: solid 1px #EC2F00;
color: #EC2F00;
text-decoration: none;
}

To put it simply, use an identical set of attributes in each pseudo class,
change only the attribute values.

Hope this helps someone.
Jul 21 '05 #1
1 1725
In article <41*********************@news.cablerocket.com>,
DM <elektrophyte-yahoo> wrote:
To put it simply, use an identical set of attributes in each pseudo class,
change only the attribute values.


You may want to join the CSS-Discuss mailing list and offer your
findings to a broader range of CSS experts. Some manage websites where
bugs and their solutions have a permanent spotlight on them. Your
solution there may wind up helping more people than just those who
frequent this group.

http://css-discuss.incutio.com/

--
Kris
<kr*******@xs4all.netherlands> (nl)
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Barry Pearson | last post: by
reply views Thread by Stuart Scharf | last post: by
1 post views Thread by DM | last post: by
47 posts views Thread by Lauren Quantrell | last post: by
3 posts views Thread by Rhino | last post: by
3 posts views Thread by Oriane | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.