I have html and css as below -
.title { display: block; background-color: red; } <a href="#"> <span class="title">Text</span> </a>
I could see that the SPAN covers 100% of the available width (due to display: block ). As below
|----------------------------------------------------| | Text | |----------------------------------------------------|
In Firefox, I can click anywhere in the window above and it will lead me to the linked page. However, in IE (IE 7) I only get the cursor as a handle when I hover over the text "Text" only.
What hack do I need to make it work (as in FF) in IE?
I tried to place the anchor tag itself (and not just the text), but it will not work.
Thanks.
html css firefox internet-explorer
TigerTiger
source share