Linking a background image with CSS is giving me so me issues. They seem pretty simple but I can't quite get around them:
I have list items for my main menu:
<div id="menuContainer">
<ul id="menu">
<a href="#"><li id="home" title="Home" alt="Home">Home</li></a>
<a href="#"><li id="current" title="Current Students" alt="Current Students">Current Students</li></a>
<a href="#"><li id="prospective" title="Prospective Students" alt="Prospective Students">Prospective Students</li></a>
<a href="#"><li id="facultyStaff" title="Faculty & Staff" alt="Faculty & Staff">Faculty & Staff</li></a>
<a href="#"><li id="visitors" title="Visitors" alt="Visitors">Visitors</li></a>
</ul>
my css sets the li to inline-block and gives defines the id's with a size and background image accordingly. I had to use zoom: 1; and *display: inline; for IE to work and everything shows up fine in IE for that now.
When I use text-indent: -9999px; to remove the text and leave the image, Chrome and Firefox works fine with this. However, in IE the whole li shifts the number of pixels listed.
Finally, In Chrome the entire image is the link, in IE and Firefox only the text is the link so with no text the menu has no function.
Any ideas?