WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Accessible checkboxes & radio buttons in fieldsets with right-aligned labels

for

From: Benjamin Hawkes-Lewis
Date: Oct 22, 2010 12:57AM


On 21 Oct 2010, at 21:57, Allison Bloodworth wrote:

> unfortunately it doesn't work in most browsers in anything except the latest version (e.g. it doesn't work in FF 3.5), I believe because styling of the legend wasn't allowed until recently:

Try wrapping the contents of the legend in a "span" and styling that.

<legend><span>Text goes here</span></legend>

This workaround normally works for me.

--
Benjamin Hawkes-Lewis