>> [...] doesn't seem to allow legends
>> to be positioned off screen [...]
> 
> Whoops, I did not know this. Sorry.
> 
> That's the truth! I use them but I do allow for some cross-browser
> variances. They aren't a mandatory element, but they *can* be helpful,
> especially for complex forms. I think a heading would work just fine for a
> wrapping fieldset in lieu of a main legend.

The legend can be positioned in Firefox by wrapping the content inside the
legend in a span and styling this. Not ideal (additional unnecessary
markup), but a quick and easy solution.

<legend><span>Login details</span></legend>

Once this is done, you can move it off screen easily or set the span to
"display: block" and you have much more control over positioning.

In regard to the use of html elements such as headings instead of legends,
keep in mind that legends have additional semantic meaning for devices such
as screen readers. The legend is sometimes read out in association with form
elements.

Headings, on the other hand, are not tied to form elements in the same way
and are even ignored by certain assistive devices when they move into "forms
mode".

HTH
Russ




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

Reply via email to