Agreed. Legends are unfortunately lacking in styleability (to coin the
term).

What I generally do in this situation is to replicate the legend using a
heading tag

<fieldset>
        <legend>Customer Info Form</legend>
        <h2>Customer Info</h2>
        Fields go here
</fieldset>

Then I style the h2 (or what ever the replacement element is) and hide
the legend using CSS.

- A

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick H. Lauke
Sent: Tuesday, 4 April 2006 9:45 a.m.
To: [email protected]
Subject: Re: [WSG] Fieldset background

Dean Matthews wrote:

> Putting a background color and image into the fieldset is working OK
in 
> Win Firefox and Mac Safari, Opera, OmniWeb but extends beyond the top
of 
> the "border" in Win IE6 to the top of the "legend" text.
> 
> Any way to get IE6 to play nice with the background?
> 
> Also, the whole layout falls apart in Mac Firefox if anyone cares to 
> comment.

Fieldset legends are notoriously difficult (if not impossible) to 
consistently style across browsers, unfortunately...

-- 
Patrick H. Lauke
__________________________________________________________
re*dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__________________________________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__________________________________________________________
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to