Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fieldsets with tables inside. How to put them on the same line?

I need to align two <fieldset> objects on the same line in partial view form. Whatever I do nothing helps. Trying to float them to the left, to the right, tried to minimize the width, tried display:inline option.

Without tables it works. With them - doesn't.

UPD: Or it might be something to do with qTip within which I'm trying to place those.

like image 870
iLemming Avatar asked Jul 20 '11 19:07

iLemming


People also ask

Does Fieldset have to be in form?

Yes, because the fieldset element is used to group related form fields.

Does a Fieldset need a legend?

Every fieldset element must contain exactly one legend element. Multiple legend elements contained in the same fieldset may result in the improper calculation of labels for assistive technologies.

What is a field set?

A field set is a grouping of fields. For example, you could have a field set that contains fields describing a user's first name, middle name, last name, and business title. When a field set is added to a Visualforce page, developers can loop over its fields and render them.


1 Answers

It's not tabular data, so why are you using a table?

There are numerous css fieldset examples to use to make nice looking fieldsets using labels and inputs appropriately. (See http://www.pixy.cz/blogg/clanky/css-fieldsetandlabels.html and http://www.sitepoint.com/fancy-form-design-css-4/ for two quick examples)

If you then want to have the two fieldsets arranged horizontally, you can use display: inline-block

like image 115
Jonathan Fingland Avatar answered Oct 10 '22 02:10

Jonathan Fingland