Archive for category CSS
Fieldset borders and legend styling
Posted by John S. De Stefano Jr. in CSS, Technical on December 19, 2006
<fieldset/> and <legend/> tags help add accessibility and organization to forms, but styling them can be frustrating. Browsers tend to display a legend as part of a fieldset, so if a fieldset has a border (as most do), that border may appear to strike through the legend text. In fact, it may do this inconsistently: I had one form with four fieldsets, and this strike-through effect appeared in only two of the four, even though they were all tagged in exactly the same manner. Read the rest of this entry »