Jump to:

1971 Posts in 1275 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » Formatting in userforms / checkbox group

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

Page: 1
Go to End
Author Topic: 1965 Views
  • freedolin
    Avatar
    Community Member
    6 Posts

    Formatting in userforms / checkbox group Link to this post

    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.

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: Formatting in userforms / checkbox group Link to this post

    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.

  • freedolin
    Avatar
    Community Member
    6 Posts

    Re: Formatting in userforms / checkbox group Link to this post

    What shall I say?

    Perfect, marvellous, wonderful ...

    It works. Many thanks!

    1965 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.