You can fake this by overlaying an absolute anchor 
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>YuriKolovsky - overlay layers in IE6</title>
<style type="text/css">
/*this is organised for you*/
/*Predefined Vars*/
* {
margin:0;
padding:0;
}
.hoverb {
position:relative;
margin-top:1.25em;
margin-left:1.25em;
}
/*Predefined Vars*/
/*width / height*/
.hoverb div, a, a:hover span {
border-style:solid;
border-width:4px;
}
.hoverb div, a, a span {
width:12em;
height:100px;
}
a {
display:block;
margin-top:-108px;
text-decoration:none;
}
h2, p {
width:12em;
margin:4px;
}
/*width / height*/
/*overlay trickery*/
a span {
display:block;
position:absolute;
z-index:10;
top:0px;
left:0px;
background-image:url(fake.gif);
cursor:pointer;
}
h2, p {
position:absolute;
left:0;
z-index:2;
}
/*overlay trickery*/
/*Colors*/
.hoverb div {
background-color:#999;
}
a {
border-color:#555;
}
a:hover {
background-color:#e3e3e3;
}
a:hover span {
border-color:#000;
}
/*Colors*/
/*MISC*/
h2 {
margin-top:-1px;
margin-left:10px;
font-size:xx-large;
}
p {
margin-left:10px;
margin-top:8px;
top:1.7em;
font-size:large;
}
/*MISC*/
</style>
</head>
<body>
<!--having h2 and p to look like its inside a link can be usefull, as clients often want hover buttons with text, and usually use ie6...
notice how the links are clickable-->
<div class="hoverb">
<div><h2>Planes</h2><p>for air travel</p></div><!--you could probably put all this in another div and treat that div as the h2 and p, and move h2, p inside the div-->
<a href="#planes"><span> </span></a><!-- is to avoid the empty span warning in the validator-->
</div>
<div class="hoverb">
<div><h2>Trains</h2><p>for land travel</p></div>
<a href="#trains"><span> </span></a>
</div>
<div class="hoverb">
<div><h2>Automobiles</h2><p>for personal travel</p></div>
<a href="#automobiles"><span> </span></a>
</div>
</body>
</html>
Bookmarks