473,320 Members | 1,810 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,320 software developers and data experts.

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 1848
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Barry Pearson | last post by:
I'm not asking a question. I'm simply showing a technique that may be useful to some people in future. I wanted a way of using photographs for rollover effects without having to slice the...
0
by: Stuart Scharf | last post by:
I have tried to implement a link rollover as described in: http://www.alistapart.com/articles/sprites/ and other references posted on this newsgroup. My attempt resulted in grossly mangled...
1
by: charliewest | last post by:
I am trying use server controls or web controls to simulate the following behavior. I've an image wrapped w/in a link to create a rollover effect as if both elements we're one graphic: <a...
1
by: DM | last post by:
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 { .......
47
by: Lauren Quantrell | last post by:
I have constructed the following code that simulates the common rollover effect when moving the mouse over a label (this example makes the label bold.) I'm wondering if anyone has come up with...
3
by: Rhino | last post by:
Yesterday, I reworked the index on my site - http://sfl.london.on.ca - so that they used list markup and I'm quite pleased with them. However, I'm having a problem with one small aspect of the menu...
3
by: PEJO | last post by:
I'm not much of a JS programmer so I used the the standard Macromedia swap image function for a disjointed rollover..which works fine.. no problem swapping the image with that code.... but when...
3
by: Oriane | last post by:
Hi there, I would like to handle a "rollover" <asp:Buttonin the code behind with C# with this kind of code: Button btn = Page.FindControl("Button" + numWidget) as Button; btn.Attributes =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.