Questions tagged [fieldset]

The fieldset tag is used to group related elements in HTML and XHTML documents. The fieldset tag draws a box around the related elements.

The fieldset tag is used for organizing and grouping related elements within a form. The tag when used the proper way makes HTML and XHTML documents more accessible to nonvisual browsers. When using the fieldset tag the browsers may display a box around the elements within the fieldset tag. The fieldset tag requires an end tag. You can also nest fieldset tags.

520 questions
5
votes
3 answers

Fieldset legend CSS rendering behavior has changed in recent months... what happened?

I have a form with various nested
elements, each with a , and today I noticed an error in my web page on all the browsers I've checked (Chrome, Firefox, Opera) which was not present earlier (6-12 months ago). There is a
Jason S
  • 184,598
  • 164
  • 608
  • 970
5
votes
0 answers

Style a HTML form with fieldsets and labels to have a 3 colum layout

The problem The question How should I style a form, so that I get my desired 3 column layout under the following constraints: The layout works, even if the the html files are not static (dynamic number of checkboxes, ...) Decent browser…
5
votes
1 answer

django admin uploaded file processing

Here's what I want to do, and I did not find something similar in my search so far. In my admin page, I have a Filefield in my model. The rest of the fields are all read only. I want to be able to upload a file and process it immediately and to…
gamadeus
  • 251
  • 3
  • 11
5
votes
1 answer

Yii2: Match excel column with master record

I am working on yii2. I have a master table called sims in my DB and all the records are saved and updated in it. In my GUI these records are maintained in SIM List. Now, there is a use-case in which I am issuing the sims to a person. The issuance…
Moeez
  • 494
  • 9
  • 55
  • 147
5
votes
1 answer

CSS 'top' in fieldset behaves differently in chrome and firefox

I want to place an icon at top right corner inside fieldset. When I use Chrome it looks like this: But for my surprise Firefox shows the icon lower: In the example I'm using normalize.css and bootstrap.css. Anyone know the reason about this…
Vangi
  • 586
  • 6
  • 20
5
votes
2 answers

How to hide a fieldset (tab) in Plone add/edit form

I have some code in dexterity content type, as below: form.fieldset( 'transitionsLog', label=_(u"Transitions Log"), fields=['t_log'] ) form.mode(t_log='hidden') t_log = schema.TextLine( title=_(u'Transitions log'), ) In add/edit…
Andy
  • 213
  • 1
  • 9
5
votes
3 answers

How to get cross-browser form `fieldset` content height in % (with legend)

I want to set in % the height of a div included in a fieldset, but browsers don't calculate the same way the inside height of the fieldset when you use legend ! Firefox: height: 100% consider the height of the legend: it's ok. Chrome: height: 100%…
M Denis
  • 138
  • 7
5
votes
5 answers

Fieldsets and legends

Alright, I know how the fieldset/legend works out in HTML. Say you have a form with some fields:
legend
What should I use the legend for? It's…
Erik van Brakel
  • 23,220
  • 2
  • 52
  • 66
5
votes
4 answers

Getting 2 fieldsets adjacent (side by side) next to each other

I need your help. My idea is to have 2 fieldsets on the page that is 100% width of the page and adjacent to each other. Browser of choice is (IE10) Right now, it does not seem that they comply with what i'd like them to do. As it stands right now…
Jason Kelly
  • 2,539
  • 10
  • 43
  • 80
5
votes
4 answers

How to center a set of html radio buttons in a fieldset with div

I have a set of radio buttons and labels. The radio buttons precede the labels. I would like to center the set of them within a field set. I tried putting them in a div with display set to inline-block. Almost works, but one label gets bumped…
abalter
  • 9,663
  • 17
  • 90
  • 145
5
votes
2 answers

Labels, checkboxes and radio buttons

My web application uses forms laid out as in the example below... First Name [____________] Last Name [____________] Gender () Male () Female The markup I use is something like...
Bumpy
  • 1,290
  • 1
  • 22
  • 32
4
votes
2 answers

Arranging fieldset elements like a typical table-design

I'm trying to arrange the titles for 3 fieldset elements the same way a typical table looks, but I can't get it the way I want. This comes pretty close, however...
Nisto
  • 43
  • 1
  • 1
  • 3
4
votes
3 answers

HTML Fieldset content overflows at 100% height (Chrome)

I have a problem with the HTML fieldset element in Chrome. I want to have a fixed-height fieldset, and within it a scrollable div. Everything looks fine until I put a legend in - when I do so, the div spills out from the bottom of the fieldset. I…
Amadan
  • 191,408
  • 23
  • 240
  • 301
4
votes
3 answers

Drupal: How to use fieldsets in hook_field_widget_form

So I have my hook_field_schema defining columns, and hook_field_widget_form is set up and saving all of the column values correctly. But as soon as I put two of the fields inside of a fieldset, those values never save or get updated. I've tried…
Karl
  • 773
  • 2
  • 9
  • 22
4
votes
3 answers

padding a fieldset, trouble with IE

What is going on with rendering the padding of a fieldset. It behaves as expected in FF and Chrome but fails in IE. This is the code im talking about:
Hello…
Muleskinner
  • 14,150
  • 19
  • 58
  • 79