473,230 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

firefox <fieldset> oddity?

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
9 4549
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xah Lee | last post by:
with strict HTML spec, can one have <p> tags inside table's <td> tag? also, in strict XHTML, can one have <p> tages inside <div>? Thanks. Xah xah@xahlee.org ∑ http://xahlee.org/
14
by: Ian Rastall | last post by:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... I wrote a small test file:...
9
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/src/search.html> I have a simple form, using the following code provided by my site search provider: <form method="get"...
0
by: I am Sam | last post by:
I have made a fieldset tag on a page editable by setting the tag attribute contenteditable="true" Is it possibel to take the information inside the opening and closing Fieldset tag and handle it...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
4
by: Adam Smith | last post by:
Hello, Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to select multiple rows in a Table such that I can demarcate several rows containing form elements in a table? ...
0
by: bobmct | last post by:
Gentlemen; I'm in the process of migrating several pages from HTML under frames to noframes using css using the three or four box design. For most of my efforts its going well. However, one...
5
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will...
6
goatboy
by: goatboy | last post by:
So I am hosting a site from my home server, and I would like the main page to be an area for updates about the site. I am providing these updates in a blog-style format, using this code: ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.