Forum Moderators: open

Message Too Old, No Replies

Image Label problem in IE6

using an image as a label does not work

         

drnoble

8:05 pm on Mar 12, 2003 (gmt 0)

10+ Year Member



I am looking at using images as labels for elements in a form, to select the relevant icon for the messageboard post.


<form action="" method="post">
...
<table><tr><td>
<b>Message Icon:</b>
</td><td>

<input type="radio" name="iconid" value="38" id="ART">
<label for="ART">&nbsp;<img src="images/icons/icon_art.gif" alt="ART"></label>
...
</td></tr></table>
...
</form>

This works fine in Mozilla, but does not work in IE6.

If i add some text inside the label, then clicking on that selects corect input - but clicking on the image still does not work.

Are there any known bugs relating to this in IE6? or can anyone shed any light on this rather strange issue.

thanks for your help, Donald

Allen

8:51 am on Mar 13, 2003 (gmt 0)

10+ Year Member



It could be that your using different name= and id= properties. IIRC id is supposed to replace name, so they should be the same value.

Allen

drnoble

10:14 am on Mar 13, 2003 (gmt 0)

10+ Year Member



I don't think this is the case, because it work fine when any text is included within the <label> but the image still does not work.

the name refers to the group of options- the id is specific to each - so in this case they *have* to be different