PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Checkbox 1st choice misaligned

  1. Hi,

    My checkbox 1st choice is aligned to the right and the following choices are aligned correctly to the left. I've tried this CSS to fix it but unfortunately it doesn't.

    '.gform_wrapper input li.gchoice_107_1 {width:auto!important}
    .gform_wrapper label li.gchoice_107_1 {float:none!important}'

    The form is here

    Any help is much appreciated,

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  2. the left margin on the list containing the checkboxes is being cancelled out by your theme CSS. Try appending this to the end of your theme's style.css file.

    .gform_wrapper .left_label ul.gfield_checkbox, .gform_wrapper .right_label ul.gfield_checkbox, .gform_wrapper .left_label ul.gfield_radio, .gform_wrapper .right_label ul.gfield_radio {margin-left:32% !important;}

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  3. Hi Kevin,

    I gave it a shot but no joy. I also have the same issue in the final section of the form.

    BTW note the client has relented and we're only uploading one zipped file :-)

    Many thanks

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  4. Steve, I looked at your CSS and it looks like you missed the "." at the very beginning of the rule. Try adding that in and see if it works.

    Oh, and congrats on the success with the client. It's nice when they defer to your expertise.

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  5. Ooops - missed my period :-)

    It works but in the opposite way I intended! I want to bring the 1st choice in left alignment to the remaining choices. The opposite has happened. The remaining choices have been brought into alignment with the first choice.

    Shouldn't you be out grilling on this Labor Day weekend?

    Many thanks

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  6. Well, it's working properly for the "left aligned" label format. If you chose the "top label" option the list would justify all the way to the left. If you want to justify the checkboxes and radio buttons all the way to the left, but keep the rest with the left label format, just let me know and I'll help you with it.

    I did get some play time in last week - visited family & friends in Dallas so I'm catching up here this weekend. I'm sure I'll find time to grill something though.

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  7. Hi Kevin

    That's exactly what I want to do but just for the checkboxes and not the radio buttons. If push comes to shove I can replace the radio buttons with a dropdown. However it's frustrating not being able to style the text in the dropdown fields - that's why I used radio buttons.

    Can we do it by applying CSS classes to each field in the same manner you helped me previously with the file uploads?

    Bottom line is I don't want to make this a major project for you when you should be kicking back on this holiday weekend!

    Many thanks

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  8. You can replace the last rule with this one if you want to remove the left margin on the lists.

    .gform_wrapper .left_label ul.gfield_checkbox, .gform_wrapper .right_label ul.gfield_checkbox, .gform_wrapper .left_label ul.gfield_radio, .gform_wrapper .right_label ul.gfield_radio {margin-left:0 !important; clear:both}

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  9. okay, this should just remove the margin on the checkboxes. No worries, just took a couple of minutes. Thanks.

    .gform_wrapper .left_label ul.gfield_checkbox, .gform_wrapper .right_label ul.gfield_checkbox {margin-left:0 !important; clear:both}

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  10. Worked like a charm! I'm a CCS newb as you probably know. What is the purpose of the last "clear: both" statement?

    Many thanks as always,

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  11. this explains it pretty well. I could rehash, but they've got it all laid out nicely.

    http://www.w3schools.com/css/pr_class_clear.asp

    Posted 14 years ago on Sunday September 5, 2010 | Permalink
  12. All is revealed - many thanks!

    Steve G

    Posted 14 years ago on Sunday September 5, 2010 | Permalink