I have this code for demonstration. It makes my link spread over whole div, which works great in Firefox, but in IE when I move cursor over text it changes to text cursor and link doesnt work there… I tried fiddling with z-index but no results… any suggestions?
I need to fill my div with other divs with their own content, so
a style="display: block"
is not an option, an i also want to avoid Javascript like
onclick="location.href=
I have a solution for you. In HTML5 it would be valid to use
<div>‘s inside of an<a>tag. But since you cannot change your language and HTML4.01 does not allow block elements inside of an<a>I would suggest faking it. By that I mean use<span>‘s inside of the<a>tag instead and style them to act as a<div>. Here is a working example: http://jsfiddle.net/DzpjT/11/HTML:
CSS: