Inside forms (e.g. Node edit form > the 'Options' checkboxes), is it really necessary for every checkbox to be enclosed in its own <div class="form-item"> ? It makes it much more difficult to style with css.

This is exactly what <br /> tags are for.

-Zach

Comments

nevets’s picture

I have someone who wants the forms more "compact", the
can make that more difficult

Steve

zach harkey’s picture

Using css descendant selectors we could work with or without the breaks,

We could remove the breaks and use css to simulate a break with something like:

fieldset label { display:block }

which would knock the input field down to the next line.

Or, we could leave the breaks and let css override them.

Something like

fieldset br { display:inline; }

or

fieldset br { display:none; }

Either way, we don't need the extra divs. In fact, those extra divs make it just as hard, if not harder to style "compact"... don't they?

: z

pfaocle’s picture

I'd like to see the br tags removed - I seem to remove them in CSS in most of my sites. Positioning should be left to CSS.

---
paul byrne
web monkey - http://www.leafish.co.uk/

---
Paul Byrne
pfaocle.co.uk | CTI digital