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.

css to put the field label on the right side of the field

  1. Hi here is my site url:
    http://mihanhub.com/?page_id=62
    I would like my field labels to be on the right side of the fields instead of the left side cause it's a right to left language. I also need to put the brows button on the left side of the field. How can I do this. A good example is the site below:
    http://www.iranianuk.com/page2.php5?n=page_ad

    Thanks for your help!

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  2. This should work for you, try dropping this into your theme's stylesheet:

    [css]
    .gform_wrapper .left_label .gfield_label, .gform_wrapper .right_label .gfield_label {
    float: right !important;
    }
    Posted 12 years ago on Monday February 20, 2012 | Permalink
  3. You can't move the location of the browse button for upload (input type='file') controls. Those controls are essentially inaccessible for formatting or CSS manipulation.

    http://www.quirksmode.org/dom/inputfile.html

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  4. Thanks Rob for your help. it worked pretty well on this page:
    http://mihanhub.com/?page_id=62
    but nothing changed on the page below:
    http://mihanhub.com/?page_id=56

    I pasted your code in my theme's custom css field.

    Posted 12 years ago on Tuesday February 21, 2012 | Permalink
  5. Thanks Kevin for your guidance.

    Posted 12 years ago on Tuesday February 21, 2012 | Permalink
  6. I updated that style block above, replace the one you have with that. You could alternatively just update your form settings to use the "Left Aligned Label" setting and it will pick up the original style block that you have in your CSS file.

    Posted 12 years ago on Tuesday February 21, 2012 | Permalink