I have a problem with this script : click here. Currently it’s working perfectly. But if i would run this through the w3 validator it’s not ‘valid’. I also know why this is, it is because the entire div is within a link.
I would like to make this work exactly the same, but also have it score as w3 valid. I have been struggeling for two weeks now with this problem and i (apperently) could use some help with this. Who can help me make this script w3 valid and work exactly like it is working right now.
I would like to keep this in HTML/CSS, i have been trying this in Java as well, but that kept ‘flickering’ with the mouse over.
Thanks a lot for any help, it is really appreciated.
To get this to work in IE6, you will have to keep the
:hoverpseudoclass on the<a>tag. In IE7+, Firefox, Chrome, Safari, and I believe Opera, you can place:hoveron any tag, and in that case, I would suggest you change the<a>tag to a<div>tag.To make it W3C compliant for IE6 functionality, change your
<div>tags to<span>tags and putdisplay:block;on the<span>tags and the<a>tag. That way the functionality should not change and you should become W3C compliant, at least within that section.