-----Original Message-----
From: John Unsworth
Sent: 09 July 2008 14:37

> It's a bit late of night, but if I read this right, if this section
> (as it is a form, right?) is wrapped in a <fieldset> you can then hide
> both labels and use legend to identify that's it's postcode

That's certainly an idea, but legends are notoriously difficult to style 
reliably across browsers. I'd go with something similar to Thierry's solution:

HTML:

<label for="PostCode1">Postcode:</label>
<input type="text" class="postcode" id="PostCode1" name="PostCode1"  
maxlength="4" />
<label for="PostCode2" class="hide">second part of postcode:</label>
<input class="postcode" type="text" id="PostCode2" name="PostCode2"  
maxlength="4" />

CSS:

.hide { left: :-9999em; overflow: hidden; }

Chris


This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to