Hi all
Sorry. I didn't get the chance to test out the sprites/one-image system just yet as I was given a last-minute deadline but now that I'm back to this project I will test it out however I have discovered a serious issue which is that the image hovers and its link functionality don't work at all in IE8 default mode. It works when I go to compatibility mode.
I looked into it via search and tried different methods but STILL nothing!! I read how IE only allows a tags to have a hover state so I applied a class to this here;
webpage: http://tinyurl.com/no2b56
CSS: http://tinyurl.com/mtnnou
on the webpage; the sidetabs at the bottom left have the HTML code of;
HTML Code:
<a class="kickboxing" href="kickboxing.html" title="Kickboxing">Kickboxing</a>
<a class="muaythai" href="muay_thai.html" title="Muay Thai">Muay Thai</a>
<a class="taichi" href="tai_chi.html" title="Tai Chi">Tai Chi</a>
<a class="closecombat" href="close_combat.html" title="Close Combat">Close Combat</a>
<a class="treatmentrooms" href="treatment_rooms.html" title="Treatment Rooms">Treatment Rooms</a>
<a class="yoga" href="yoga.html" title="Yoga">Yoga</a>
<a class="upcoming_events" href="upcoming_events.html" title="Upcoming Events">Upcoming Events</a>
CSS for it is
Code:
.kickboxing {
background-image:url(images/ly_nv_kickboxing.gif);
background-repeat:no-repeat;
width: 179px;
height: 37px;
display:block;
text-indent:-5000px;
}
.kickboxing:hover{
background-image:url(images/ly_nv_kickboxing_hvr.gif);
background-repeat:no-repeat;
}
Now the top navigation has a UL LI - so they're both using different HTML tags but same CSS styling however neither work as a link/hover in IE8. I also tried DIVs. The only way I am sure would work is the img tag but I prefer to use UL LIs.
any ideas what I could do?
it works fine in every other browser. !
Thanks!
__________________
Freelance Graphic Designer not for hire
Last edited by StylaStyla; 09-12-2009 at 05:32 PM..
Reason: typooooooo
|