Well. Just when you thought you've seen everything. :-)
The problem: In every other browser - including IE 9 beta - this image based block anchor works fine.
IE 8, and only IE 8, doesn't recognize it as an anchor. The cursor changes from cursor to arrow when mousing over it, but the hover states don't work and it doesn't navigate. This is with the header navigation using the same methods on the same page just fine.
Remove the CSS and let it live as a plain text link, it's fine.
The environment:
Page is 100% validated HTML 4.01 strict.
Firebug shows no overlying elements interfering with the abberation.
No absolute positioning or conditionals - straight HTML and CSS, using floats and semantic elements.
The HTML:
<div id="left-content">
<div id="careers-left"></div> <!-- left-floated 300 X 500 background image -->
<div id="careers-right"> <!-- left-floated 300 px container, which actually is in the middle column -->
<!-- Some "ordinary content" here
a head, a list, a paragraph
-->
<p id="careers-started"><a href="link-to-page">Get Started Here!</a></p> <!-- this is the problem -->
</div> <!-- end of the container -->
<!-- a right column follows here, also left-floated -->
The relevant CSS: (Firebug shows no other elements interfering with it except the page font assignment in body)
#careers-started,#careers-started a { display:block; width:163px; height:30px; }
#careers-started { margin: 24px 0 24px 80px; padding:0; }
#careers-started a { background:url(/images/get-started-button.gif) top left no-repeat; text-indent:-50000px; outline:none; cursor:pointer; }
#careers-started a:hover { background-position:bottom left; }
What I've tried:
- This started out as a paragraph with text-align: center (which probably conflicted with the text-indent on the a) so I messed with margins, which left me at what you see above.
- Searched and searched, found nothing helpful.
- Removed the text-indent completely, thinking it was throwing the whole anchor off page. No luck.
- added position relative, has Layout, and a couple other worthless hoo-doo's (that only Internet Destroyer loves) to the parent container, no help.