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
8
votes
1 answer

Multiple fieldset in a form tag

I Wanted to know if a
can contain many
in it? Or is it better to use
instead? In my case, I want to design a sophisticated responsive designed with many different kinds of .' And if so, do theshould be in his…
Sarcadass
  • 354
  • 1
  • 2
  • 11
8
votes
2 answers

django admin: How to customize one field in fieldsets?

I try to make one field in django admin's fieldsets to show only certain data, but according to django document, only an example of list_display is shown to be able to customize. I tried the similar approach on fieldsets like the following: In…
Shang Wang
  • 24,909
  • 20
  • 73
  • 94
7
votes
5 answers

Center a field set with CSS

I'm trying to center a fieldset containing the login "username" and "password" fields to the center of the page. Here is what I have: fieldset{ border: 1px solid rgb(255,232,57); width: 400px; float: left; } I want the fieldset to be centered…
Chris
  • 11,819
  • 19
  • 91
  • 145
7
votes
2 answers

Fieldset with `max-height: 0` always overflows on Chrome v87+

On Chrome 86, a fieldset with a max-height less than the height of its contents and overflow: hidden would hide the contents of that fieldset. However, on Chrome v87 (87.0.4280.67), this apparently changed. If a height is set that is less than the…
romellem
  • 5,792
  • 1
  • 32
  • 64
7
votes
4 answers

jquery-mobile create dynamic controlgroup and apply jquery-ui css

This is my code: http://jsfiddle.net/YKvR3/34/ I would create a controlgroup with values that are in my array (name). The problem is that when I click load button the values are added in a controlgroup but the jquery-ui styles are not loaded like in…
michele
  • 26,348
  • 30
  • 111
  • 168
7
votes
2 answers

How to align a checkbox and a text input tag into a jquery-mobile line

Using JqueryMobile, I wish to achieve the following layout: Having nice decorations boxes to separate my input lines Having one checkbox aligned vertically with an input text field, both on the same line But after many attempts, the only layout I…
Alain
  • 1,450
  • 3
  • 20
  • 37
6
votes
2 answers

Make a legend fill up the full width within the fieldset

I would like to have a background for a legend field within a fieldset. And I want it to take up the full width, but only within the fieldset. If I use legend {width: 100%} it will be wider than the fieldset. Here is an example, runnable in…
Jonas
  • 121,568
  • 97
  • 310
  • 388
6
votes
1 answer

How to make LEGEND respect FIELDSET width

I have a fieldset with a legend that may be loaded with a very long string. I want the legend to respect the width of the fieldset and use up only 50% of the space. Currently, if the legend is too long it will still only take up 50% of the fieldset…
AnthonyVO
  • 3,821
  • 1
  • 36
  • 41
6
votes
2 answers

Is there any way to allow CSS margins to collapse through a fieldset boundary?

In CSS, adjacent vertical margins usually “collapse” into one another (i.e. the vertical space between the elements will be equal to the largest margin, not the sum of the margins). However, fieldset elements, unlike most other elements, do not…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
6
votes
2 answers

Wrapping a label element within a legend element

I've never had a reason to put a label element inside of a legend element (never really thought about it or seen it done). But with the design I'm implementing, it's tempting to do so. Here's what I'm tempted to do:
Andy Ford
  • 8,410
  • 3
  • 26
  • 36
6
votes
2 answers

Titled frame panel for GWT (using FIELDSET and LEGEND html tags)

I'm trying to create a titled border frame in GWT, which results in this: This can be done using HTML fieldset and legend tags, such as
Connection parameters ... the rest ...
I want to create a…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
6
votes
5 answers

fieldset same line

I have 2 fieldsets:
first fildset
second fieldset
how can I place them in same line?
33528
  • 372
  • 6
  • 12
  • 30
5
votes
5 answers

Is it possible to change a fieldset's background-color on input:focus?

Is it possible to have the background-color of a form's fieldset change when the cursor is inside any of that fieldset's text fields? I assumed this might work, but it doesn't: fieldset {background: #ffe;} input[type=text]:focus+fieldset…
user395908
5
votes
1 answer

Is there a Box with Title in Material UI

Is there a way to create a Box or a Paper with a title on top like this screenshot : I'm talking about the top lefty title portion. I tried using a Box or a Paper component but it doesn't seem like the option is there. Thank you for the help
5
votes
2 answers

Using exclude with Django fieldsets

I'm trying to write a dynamic form for models that allow users with different permissions to do different things. What I would like is for the below code to function properly, so that non-superusers can't edit any of the fields in the 'Merchant'…
Ceasar
  • 22,185
  • 15
  • 64
  • 83
1 2
3
34 35