Hi everyone,
I have the following html and css:
<div id="flash_container">
<h2 id="biz"><a href="biz/index.php">Biz</a></h2>
<h2 id="cons"><a href="cons/index.php">Cons</a></h2>
</a>
</div>
div#flash_container h2#biz {
width: 430px;
height: 341px;
float: left;
background: url(images/biz.jpg) no-repeat 0 0;
text-indent: -9999px;
}
div#flash_container h2#cons {
width: 430px;
height: 341px;
float: right;
background: url(images/cons.jpg) no-repeat 0 0;
text-indent: -9999px;
}
div#business h2#biz a {
width: 430px;
height: 341px;
display: block;
outline: none;
}
div#consumer h2#cons a {
width: 430px;
height: 341px;
display: block;
outline: none;
}
The anchor elements are being wrapped by the h2s which is floated, however the h2’s aren’t clickable as links once floated.
I wondered if anyone knows what I’m doing wrong?
Thanks in advance for any help.