Is it possible to use markup like this
<ul>
<li><a href="#"><img alt="" src="/image1.jpg"></a></li>
<li><a href="#"><img alt="" src="/image2.jpg"></a></li>
</ul>
And do a sliding door effect? I have some CSS that looks like this:
ul li {
list-style-type: none;
margin:0; padding:0;
}
li a {
display:block;
overflow:hidden;
width:225px;
}
li a img {
float:left;
}
li a:hover img {
float:right;
}
It works in FireFox but IE7 doesn't seem to understand the float:left / float:right code. Any ideas?