Hi all
I have this simple rollover css that uses a image containing the over and out states - hovering over the link move the background.
http://www.ttmt.org.uk/rollover.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>untitled</title>
<style type="text/css">
a:link, a:visited;{
height:50px;
width:120px;
display:block;
background:url("nav.gif")no-repeat top left;
text-indent:-1000em;
}
a:hover, a:active;{
background-position:bottom left;
}
</style>
</head>
<body>
<a href="#">Button</a>
</body>
</html>
It works in all browsers apart from any IE - the image dosen’t show at all. Why dosen’t work in IE, and whats the best way to do this.
Thanks for any help