W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2005

RE: additional label question

From: Jim Thatcher <jim@jimthatcher.com>
Date: Sun, 3 Apr 2005 21:03:12 -0500
To: <steven.faulkner@nils.org.au>, "'W3c Wai Ig'" <w3c-wai-ig@w3.org>
Message-ID: <000701c538ba$7da03110$6501a8c0@jtcom2400>
Hi Steve ...

Steve asked ...
>  is this considered a hack?

Well maybe it is a hack. But you could use the title attribute on the form
control if you were so inclined.

Accessibility Consulting: http://jimthatcher.com/

-----Original Message-----
From: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org] 
Sent: Sunday, April 03, 2005 7:06 PM
To: W3c Wai Ig
Subject: RE: additional label question

A method that I have looked into is the use of the z-index to place labels
behind a form input (in the stacking order) effectively hiding it from view
for CSS capable browsers, but still available to screen readers.

code example:
<div><label style="z-index:-1;position:absolute;" for="poot">poot</label>
<input type="text" id="poot" /></div> 

is this considered a hack?

best regards

Received on Monday, 4 April 2005 02:03:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:08:59 UTC