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.

How do I get a gfield_description to go inside a ginput_container?

  1. My site form is http://comparefhahomeloans.com/texas-purchase-loan-request-form/#gf_1

    I am trying to get the gfield_description to align perfectly with the dropdown boxes. Looking at the structure I am thinking the only way to accomplish this is to move gfield_description inside of the ginput_container.

    Does anyone know how to do this or does anyone know of a better way?

    Posted 13 years ago on Friday January 14, 2011 | Permalink
  2. Just to be clear.. Are you talking about the horizontal label/field alignment or the actual description text (in green) being aligned vertically with the select fields?

    By default the descriptions are aligned vertically under the field. I see that you have a 80% left margin applied to the descriptions which is overriding the defaults.

    Also, there's no need to try to rearrange the markup, and you can't change it anyhow without hacking the plugin. All you need is to get your CSS fixed up to make this happen.

    Please clarify exactly what you're trying to do for me and I'll be happy to offer some suggestions.

    Posted 13 years ago on Saturday January 15, 2011 | Permalink
  3. I am referring to the actual green description. My client wants it to the right of the fields and not under.

    Posted 13 years ago on Saturday January 15, 2011 | Permalink
  4. Okay, understood. Thanks for the clarification. I'll take a look at it and post something back in a few.

    Posted 13 years ago on Saturday January 15, 2011 | Permalink
  5. You can try this.

    .gform_wrapper .right_label .gfield_description, .gform_wrapper .left_label .gfield_description, .gform_wrapper .left_label .instruction, .gform_wrapper .right_label .instruction {
        margin-left: 80%;
        padding-left: 0;
        position: relative;
        top: -40px;
        margin-bottom:-30px
    }

    screenshot: http://grab.by/8o8m

    You may need to tweak it a bit here and there, but it should get you close to where you want to be

    Posted 13 years ago on Saturday January 15, 2011 | Permalink