Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Formatting in userforms / checkbox group


Go to End


3 Posts   2947 Views

Avatar
freedolin

Community Member, 6 Posts

30 July 2009 at 9:18pm

I have strange formatting in a userform. I use ss 2.3.2 with userforms 0.2. I'm a newbie and I tried to find an answer in this forum.

Please have a look here: http://nks2.zenit.de/subscribe or see the attached screenshot.

If you uncheck the first or second checkbox then a checkbox group opens where all further checkboxes are badly formatted. How and where can I fix that?

Thx in advance for your valuable attention.

Avatar
Nathan Cox

Community Member, 99 Posts

31 July 2009 at 4:57pm

The problem is the styles in BlackCandy's form.css:

The rule ".typography label" sets labels to display:block, which makes them drop onto a new line instead of sitting beside the checkbox like they should. The rest of the checkboxes work fine because the "label.right" rule sets their display back to "inline", but the labels in the expanding groups don't get the ".right" class.

Adding a rule like

.checkboxsetfield label {
display:inline;
}

to form.css should fix the problem.

Avatar
freedolin

Community Member, 6 Posts

31 July 2009 at 9:34pm

What shall I say?

Perfect, marvellous, wonderful ...

It works. Many thanks!