By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,715 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,715 IT Pros & Developers. It's quick & easy.

firefox <fieldset> oddity?

P: n/a
hello

when I use

<fieldset><legend></legend>
<input type="hidden" name="subject" value="Course">
<input type="hidden" name="recipient" value="allemails">
<input type="hidden" name="email" value="fr**@jim.com">
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="required" value="name,user-email">
</fieldset>

this is OK with IE 7 but with Firefox 2.0.0.9 I get an empty box with
a line round it.

How do I get rid of this box?

Cheers

Geoff
Nov 19 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On Nov 19, 11:05 am, Geoff Cox <<>wrote:
hello

when I use

<fieldset><legend></legend>
<input type="hidden" name="subject" value="Course">
<input type="hidden" name="recipient" value="allemails">
<input type="hidden" name="email" value="f...@jim.com">
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="required" value="name,user-email">
</fieldset>

this is OK with IE 7 but with Firefox 2.0.0.9 I get an empty box with
a line round it.

How do I get rid of this box?

Cheers

Geoff
zap the legend tag
Nov 19 '07 #2

P: n/a
On Mon, 19 Nov 2007 10:07:14 -0800 (PST), salmobytes
<Sa***************@gmail.comwrote:
>On Nov 19, 11:05 am, Geoff Cox <<>wrote:
>hello

when I use

<fieldset><legend></legend>
<input type="hidden" name="subject" value="Course">
<input type="hidden" name="recipient" value="allemails">
<input type="hidden" name="email" value="f...@jim.com">
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="required" value="name,user-email">
</fieldset>

this is OK with IE 7 but with Firefox 2.0.0.9 I get an empty box with
a line round it.

How do I get rid of this box?

Cheers

Geoff

zap the legend tag
I've tried that but I get an error then at

http://validator.w3.org/

using HTML 4.01 strict!

Cheers

Geoff
Nov 19 '07 #3

P: n/a
On Nov 19, 11:55 am, Geoff Cox <<>wrote:
On Mon, 19 Nov 2007 10:07:14 -0800 (PST), salmobytes

<Sandy.Pittendr...@gmail.comwrote:
On Nov 19, 11:05 am, Geoff Cox <<>wrote:
hello
when I use
<fieldset><legend></legend>
<input type="hidden" name="subject" value="Course">
<input type="hidden" name="recipient" value="allemails">
<input type="hidden" name="email" value="f...@jim.com">
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="required" value="name,user-email">
</fieldset>
this is OK with IE 7 but with Firefox 2.0.0.9 I get an empty box with
a line round it.
How do I get rid of this box?
Cheers
Geoff
zap the legend tag

I've tried that but I get an error then at

http://validator.w3.org/

using HTML 4.01 strict!

Cheers

Geoff
post a link to the page.
there could be lots of things going on.
Nov 19 '07 #4

P: n/a
In article <at********************************@4ax.com>, Geoff Cox <<wrote:
>hello

when I use

<fieldset><legend></legend>
<input type="hidden" name="subject" value="Course">
<input type="hidden" name="recipient" value="allemails">
<input type="hidden" name="email" value="fr**@jim.com">
<input type="hidden" name="redirect" value="thanks.htm">
<input type="hidden" name="required" value="name,user-email">
</fieldset>

this is OK with IE 7 but with Firefox 2.0.0.9 I get an empty box with
a line round it.

How do I get rid of this box?
Umm... don't use 'fieldset'? (:-))

From the first entry I googled up:

"HTML <fieldsettag

Definition and Usage
The fieldset element draws a box
around its containing elements"

Did you actually want a 'frameset', maybe?

Cheers,

-- Pete --

[BTW, I cut & pasted your code snippet, and ran it through 'tidy',
which *objected* to the empty 'legend', and removed it! Still got
the box in firefox, though]

--
================================================== ==========================
The address in the header is a Spam Bucket -- don't bother replying to it...
(If you do need to email, replace the account name with my true name.)
Nov 19 '07 #5

P: n/a
In article <fh**********@jwgibbs.CChem.Berkeley.EDU>,
Pete <ne*******@jwgibbs.cchem.berkeley.eduwrote:
>In article <at********************************@4ax.com>, Geoff Cox <<wrote:
>>
How do I get rid of this box?
Umm... don't use 'fieldset'? (:-))
Did you actually want a 'frameset', maybe?
Er... Scratch that last line! Dunno where my mind was -- way off to the
left somewhere, I guess. Framesets have of course nothing to do with
the situation.
-- Pete --

--
================================================== ==========================
The address in the header is a Spam Bucket -- don't bother replying to it...
(If you do need to email, replace the account name with my true name.)
Nov 19 '07 #6

P: n/a
rf

"Geoff Cox >" <<wrote in message
news:31********************************@4ax.com...
I have used the <fieldsetetc somply because in using

http://validator.w3.org/

it tells me that for html 4.01 strict I should!
No it does not. It says that input elements within a form must be surrounded
by a block element, fieldset being one of them. You could quite as easily
use a div, just to placate the validator.

Why does your form consist entirely of hidden elements. Looks like you are
trying to emulate a poor mans session.

--
Richard.
Nov 20 '07 #7

P: n/a
On Tue, 20 Nov 2007 09:35:13 GMT, "rf" <rf@invalid.comwrote:
>
"Geoff Cox >" <<wrote in message
news:31********************************@4ax.com.. .
>I have used the <fieldsetetc somply because in using

http://validator.w3.org/

it tells me that for html 4.01 strict I should!

No it does not. It says that input elements within a form must be surrounded
by a block element, fieldset being one of them. You could quite as easily
use a div, just to placate the validator.

Why does your form consist entirely of hidden elements. Looks like you are
trying to emulate a poor mans session.
You were correct! just putting the hidden parts into a <divworks and
also gets rid of the black space which a <fieldset class= etccauses.

Thanks for that!

Cheers

Geoff
Nov 20 '07 #8

P: n/a
rf

"Geoff Cox >" <<wrote in message
news:36********************************@4ax.com...
On Tue, 20 Nov 2007 09:35:13 GMT, "rf" <rf@invalid.comwrote:
>>
"Geoff Cox >" <<wrote in message
news:31********************************@4ax.com. ..
>>I have used the <fieldsetetc somply because in using

http://validator.w3.org/

it tells me that for html 4.01 strict I should!

No it does not. It says that input elements within a form must be
surrounded

s/surrounded/contained in/

>>by a block element, fieldset being one of them. You could quite as easily
use a div, just to placate the validator.

Why does your form consist entirely of hidden elements. Looks like you are
trying to emulate a poor mans session.

You were correct! just putting the hidden parts into a <divworks and
also gets rid of the black space which a <fieldset class= etccauses.
Thanks for that!
No problem. However, what I usually do is just include all the hidden fields
at the top of the first fieldset within the form, assuming you are using
fieldsets to prettily lay out the form. They don't need their own fieldset
or div, being invisible anyway.

--
Richard.
Nov 20 '07 #9

P: n/a
On Tue, 20 Nov 2007 10:29:54 GMT, "rf" <rf@invalid.comwrote:

>You were correct! just putting the hidden parts into a <divworks and
also gets rid of the black space which a <fieldset class= etccauses.
>Thanks for that!

No problem. However, what I usually do is just include all the hidden fields
at the top of the first fieldset within the form, assuming you are using
fieldsets to prettily lay out the form. They don't need their own fieldset
or div, being invisible anyway.
Richard,

OK!

Cheers

Geoff
Nov 20 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.