We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Alignment of text for RadioField labels ... | Forum

Michael Burns
Michael Burns Mar 4 '12
I am displaying a group of choices using RadioField. When the label is long enough that it wraps, the wrapped line text is aligned with the button, not the first line of text as shown below.

o Label 1
o Label 2 with text
that wraps
o Label 3

How can I get the wrapped line of text to align with the first line of text as shown below?

o Label 1
o Label 2 with text
   that wraps
o Label 3

Thanks!

Mike
Sardar
Sardar Mar 7 '12

You need to wrap checkbox and its label in separated spans and use CSS. It's impossible to do it without code modification of base form element. The other way to reach it is to use JS code.

Michael Burns
Michael Burns Mar 7 '12
Thanks Sardar. I was hoping there was something simple I was missing, but apparently that's not the case. Bummer.
Honsa
Honsa May 5 '12
Ok same for CheckboxGroup, it generates unordered lists, so there is no other way at this time


edit says: after some experiments with css its not to hard to implement, for me it works well now, just the inline style rules where anoying ;)

The Forum post is edited by Honsa May 5 '12
Michael I.
Michael I. Dec 21 '12
Topic was moved from Plugins.