I'm wrestling with CSS variations between Firefox and IE. I'm trying to
create rollover buttons in a menu frame. It is working perfectly in
Firefox but in IE only the first button is properly highlighted and
linked. The second button, has only a partial "hit area" at the top of
the image, although if you click the link, you can see the link border
is properly place around the image. The rest of the buttons have no
rolloever state or link at all.
As I say, all of this works perfectly in Firefox. You can see the web
page at:
http://www.wesleyumc-vinton.org/beta/index.html
And yes, I know that there are other problems with pages as you load
them. One thing at a time. Let's fix the rollovers first :)
Here is the relavant CSS code that I'm using to create the rollover
buttons;
/* This hides the text that we use for the menu links */
#menu a i { visibility: hidden; }
/* This positions the hover images vertically */
a#Home { top: 187px; left: 0; }
a#Action { top: 233px; left: 0; }
a#Learning { top: 279px; left: 0; }
a#Groups { top: 325px; left: 0; }
a#Links { top: 371px; left: 0; }
/* Define the hover images */
a#Home:hover { background-image: url(img/home_btn_glow.jpg);
background-repeat: no-repeat; }
a#Action:hover { background-image: url(img/action_btn_glow.jpg);
background-repeat: no-repeat; }
a#Learning:hover { background-image:
url(img/learning_btn_glow.jpg); background-repeat: no-repeat; }
a#Groups:hover { background-image: url(img/groups_btn_glow.jpg);
background-repeat: no-repeat; }
a#Links:hover { background-image: url(img/links_btn_glow.jpg);
background-repeat: no-repeat; }
/* This allows the hover image to hide again after you move away
from it */
a#Home:hover,
a#Action:hover,
a#Learning:hover,
a#Groups:hover,
a#Links:hover {border: none; }
As a final note, Let me say that this was all working fine in IE until,
for design reasons, I decided to go with frames on the page.
Anyway, can someone point out to me a hack to make IE behave properly?
Thanks!
AJ