Even when anchors are styled with "display:block", the cursor does not become a hand when hovering over the area surrounding the text links.
Use the Holly Hack to support Internet Explorer v. 5 and 6 or the "white space" fix if support for IE 5.0 is not required.
Anchors styled with "display:block" should offer a clickable area larger than the text link itself (the whole box should be "hot"). Example:
a {
display:block;
text-decoration:none;
padding:.5em;
}
Unfortunately, in Internet Explorer, unless "hasLayout" is turned on, the cursor shape would revert to "default" as soon as it moves out of the text link area.
You can "give layout" to the A elements using a variation of the Holly Hack (inside a Conditional Comment). For example:
<!--[if lt IE 7]>
<style type="text/css" media="screen">
a {height:0;}
</style>
<![endif]-->
a {display:inline-block}
Text ID: INTERNET_EXPLORER_DOES_NOT_MAKE_THE_WHOLE_LINK_CLICKABLE_
To add a comment, please Log in.
Width is not that safe...
by Thierry Koblentz on September 29, 2007
Using "width" works fine, but forces CSS authors to take into consideration padding/border values. Also, let's not forget that the box is built *differently* depending on "mode" (Quirks vs. Standard)...
Width is not that safe...
by Thierry Koblentz on September 29, 2007
Using "width" works fine, but forces CSS authors to take into consideration padding/border values. Also, let's not forget that the box is built *differently* depending on "mode" (Quirks vs. Standard)...
Width is not that safe...
by Thierry Koblentz on September 29, 2007
Using "width" works fine, but forces CSS authors to take into consideration padding/border values. Also, let's not forget that the box is built *differently* depending on "mode" (Quirks vs. Standard)...
or define a width...
by webmonk on April 16, 2007
As amy_ok said.. width 100% wrks as does defining whatever width your column is. I would say avoid the hack if you can.
width: 100%
by amy_ok on December 26, 2006
I usually use width:100%; o make the entire area clickable in IE