Page 1 of 1

Label tag not clickable if a child of hyperlink

Posted: Sat Jul 11, 2009 12:24 am
by cohq82
I have an HTML structure like this
<a href="/abcd">
<img src="aa.gif">
<label>click me</label>
<img src="bb.gif">
</a>

There is a reason to do it like that. I want to whole group clickable and go to /abcd

However it works in Firefox but not in Internet Explorer. In IE, if I click on the area where the <label> is, it does not work. The img tag is fine. Can you help? Thanks

Re: Label tag not clickable if a child of hyperlink

Posted: Sat Jul 11, 2009 2:38 am
by kaszu
Try setting

Code: Select all

display: inline-block;
for <a>
Please provide CSS if that doesn't work.