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.

Adding an Image to the Form

  1. eirlymeyer
    Member

    I'd like to add an Image to the form.
    My goal is to add an image and text next to that image. For example:
    Logo: Name of Application.

    It seems that none of the drag & drop options allow me to do that.

    What is the best way to add and align an image to a form?

    Posted 13 years ago on Tuesday September 13, 2011 | Permalink
  2. The "HTML" fields allow you to add freeform HTML markup inline with your form fields. You can add an image reference and any other markup you'd like to have with it there.

    http://www.gravityhelp.com/documentation/page/HTML

    Posted 13 years ago on Tuesday September 13, 2011 | Permalink
  3. eirlymeyer
    Member

    Okay, I was able to use the HTML field.
    However, I'm not able to align my image to the first section of the form called: Form Settings. (ie: BARKAT Financial Services: Application Form). I tried to do the gf_left_half & gf_right_half, but it ends up in the same spot.

    Example: http://barkatfinancialservices.com.au/form-testing/

    Posted 13 years ago on Tuesday September 13, 2011 | Permalink
  4. Yeah, the CSS Ready Classes aren't meant to be applied to the HTML blocks. You could target the HTML field by the containing list element ID, then position it wherever you want to in the form with some custom CSS rules. You could float it to the right, but in this instance, you'll probably do better with absolutely positioning the image. You can try adding this to your theme stylesheet and then tweaking it from there.

    [css]
    body. #gform_wrapper_1 {
    	position: relative
    }
    body #gform_wrapper_1 li#field_1_22.gfield_html {
        width: 25%;
        position: absolute;
        top: 30px;
        right: 0;
    }

    screenshot: http://bit.ly/q3jGNS

    Posted 13 years ago on Tuesday September 13, 2011 | Permalink