W3C home > Mailing lists > Public > www-html@w3.org > October 2003

Re: LABEL behaviour

From: Chris Moschini <cmoschini@myrealbox.com>
Date: Thu, 09 Oct 2003 10:03:57 -0400
To: www-html@w3.org
Message-ID: <1065708237.bbcf0760cmoschini@myrealbox.com>

You can accomplish this today with CSS if you wrap your input field with the label tag, rather than using the for attribute. Just apply a :hover style to the pair. Unfortunately, IE doesn't even support this syntax, so you lose most of the world audience today... but hopefully something will change soon.

But that's an issue of implementation; the spec as it now provides for both your desired functionality and the label tag just acting on its own, so the option is left with the author - that's good, IMO.

-----Original Message-----
From: Скорецкий Артём <a.skorecki@taom.ru>

So, IMHO <label> element should distribute mouseOver and mouseOut events 
to linked object (set by LABEL's "for" atribute to object's "id" value)).

-Chris "SoopahMan" Moschini
Received on Thursday, 9 October 2003 10:04:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:05 UTC