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
18
votes
5 answers

Fieldset and disabling all child inputs - Work around for IE

I have a fieldset that has a ui-view under it. Each view had lots of fields(a field is a directive that wraps an input) under it. It looks something like this:
// this changes with lot's of…
17
votes
2 answers

CSS3 for HTML5 Legend inside fieldset

Can you please suggest CSS to get effect as quoted below (using CSS3 gradient & borders) ? Current version of HTML is mentioned below:
Pawan Mude
  • 1,609
  • 6
  • 19
  • 32
15
votes
3 answers

fieldset width 100% of parent

I need to have a scrollable div inside a fieldset. My problem is that a fieldset expands to it's contents width instead of staying withing its parent.
Tony Brix
  • 4,085
  • 7
  • 41
  • 53
14
votes
2 answers

Why do
s clear floats?

Consider the following test case, in which a floated and an inline element are placed inside a
versus a
: .float { float: right; background-color: red; height: 200px; }

With fielset

Inline!
Matt
  • 188
  • 1
  • 6
14
votes
9 answers

How can I make a fieldset legend-style "background line" on heading text?

I'm attempting to style heading text similar to how your default legend text appears in fieldsets; that is to say, I'd like a strikethrough-like line to come up to, but not through, the text. I can't seem to find any information on how I might…
Meshaal
  • 694
  • 2
  • 7
  • 18
13
votes
4 answers

Printing fieldsets in firefox

I've been adding some new css to an existing project (using media="print") in the page header. It's going smooth and (for once!) IE is giving nice, expected results, but Firefox does not... The problem is that I have a fieldset which contains a lot…
Dave
  • 6,905
  • 2
  • 32
  • 35
12
votes
3 answers

Fitting a
to the size of its content with CSS?

Here's a fiddle. I need to make the
the width of its contents, rather than its parent. Is there a good way to do this?
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
11
votes
2 answers

Programmatically Creating fieldset, ol/ul and li tags in ASP.Net, C#

I need to write an ASP.Net form which will produce the following HTML:
Contact Details
Matt
  • 317
  • 1
  • 2
  • 12
10
votes
11 answers

Forms with multiple columns, no tables

How to position a complex form with multiple fields in line across the screen?
user93810
  • 101
  • 1
  • 1
  • 3
10
votes
5 answers

HTML fieldset allows children to expand indefinitely

I want to put a scrollable box inside of a fieldset, but I’ve run into a quirk and I can’t figure out my way around it. When you put your scrollable div inside of a fieldset, the fieldset expands instead of making the scrollable element…
Stephen Sorensen
  • 11,455
  • 13
  • 33
  • 46
10
votes
1 answer

legend and fieldset in android

I want to know if it's possible in android to do a form like that : At this moment, I made a shape to produce the border (I use this shape as a background of my linearlayout, but i don't know how to deal with the text). Thanks in advance.
Dahevos
  • 1,495
  • 5
  • 16
  • 26
9
votes
4 answers

Can any HTML element be styled as a fieldset/legend?

Using the display property, HTML elements become interchangeable from a styling perspective. This doesn't seem to be the case for fieldset and legend, however. Is it possible to style other HTML elements to look like fieldset and legend?
Jakob
  • 2,588
  • 5
  • 27
  • 34
8
votes
2 answers

how can we make a div take width according to its content automatically

I want to create an effect like that of fieldset and label. When the headings change along the side, the width that the white background of the heading remains the same. If I can make the heading or div element to take the width enough to fit its…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
8
votes
5 answers

's width in html

I have an issue with the width of a fieldset. It's not auto adjusting to it's content. It sets the width to the width of the screen. Is there a way to set it to auto adjust to the width of the content of the fieldset?
user441940
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

Fieldset: Center legend

as asked many times before (but never really answered) I want to center a legend in a fieldset. The trick was done perfectly here, which I also bought for my project:…
philkunz
  • 421
  • 2
  • 5
  • 16
1
2
3
34 35