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.

Design & Layout

  1. amandastretton
    Member

    I understand that I can make my gravity form look however I like with css.

    I know a little bit of css and feel comfortable that I will figure out what I have to do to get the form looking the way I want in time.

    However, where to I put my css?

    Are there any template forms (design wise not form field-wise) that I can just choose to use instead of making my own designs?

    Am I able to state how wide I want my form to be? At the moment it takes up the entire width of my page which looks crazy.

    Am I able to have a nicer looking captcha? The default color is brown and yellow and ugly. Am I able to have a nice stylish looking captcha that will match will the colors and style of the form that I make?

    Thanks for your help.
    Amanda

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  2. However, where do I put my css?

    You would put any new CSS rules in your theme's stylesheet or custom CSS area. We discourage making any changes to the default forms.css file in the plugin folder since that gets overwritten with each upgrade and any changes you make there would be wiped out.

    Are there any template forms (design wise not form field-wise) that I can just choose to use instead of making my own designs?

    Currently no. That's something we're considering for an add-on in the future.

    Am I able to state how wide I want my form to be? At the moment it takes up the entire width of my page which looks crazy.

    Yes, you can redefine the width on the main gform_wrapper element.

    [css]
    body .gform_wrapper { width:640px }

    Everything will resize appropriately to fit along with it. See the first section here for CSS samples and instructions.

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

    Am I able to have a nicer looking captcha? The default color is brown and yellow and ugly. Am I able to have a nice stylish looking captcha that will match will the colors and style of the form that I make?

    I'm not sure where you're seeing brown, but the reCaptcha field has 4 theme/color options you can choose from.

    screenshot: http://grab.by/9YPW

    reCaptcha is a third-party service that we integrate with our forms so we don't control the formatting/layout of the reCaptcha field beyond what few options they offer. Of course, you can inspect the page source with a tool like firebug or the safari developer tools, see what the class names and IDs are in the markup and then add your own CSS to manipulate the output if you want.

    You can also use the Really Simple Captcha plugin. If you have that installed, you'll see it as an option displayed in the Captcha field. That is a very simple layout with a couple of more flexible styling options that you might prefer.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  3. Hi, I have a similar question regarding the width of a field. I unfortunately do not have any CSS knowledge but have read through some of your documentation. I understand that I am able to amend the layout of a field through the advanced options and inputting a CSS Class Name. I have tried many examples from the documentation but nothing has worked (I did have luck moving it to the right half with gf_right_half but i want it to span the full width). Please can you assist me with the correct CSS Class Name to input into the advanced options of the field to get the pricing field to span the full width of the page as opposed to wrapping the text to fit into the left half. Here is my form http://encierrospecials.co.za/?page_id=60 and i want to get the pricing option "Entrepreneur ROS 728x90..." to span the full width of the page and not wrap the text over 4 lines.

    Thanks for the assistance.
    Greg

    Posted 13 years ago on Wednesday June 29, 2011 | Permalink
  4. The problem is coming from your theme CSS. WooThemes has some Gravity Forms specific styles built into their themes, and they've chosen to override the "top label" option and force all the field labels to float to the left. Along with that, they've decided to limit the label width to just 100px. That's causing your label to wrap. If we disable that property ( on line 781 of your theme's style.css file ) then you'll see the label doesn't wrap.

    screenshot: http://bit.ly/l1bTP8

    If we turn off the other properties that specify the left float, margins, etc. You'll see the default Gravity Forms layout is restored.. which is much more readable.

    screenshot: http://bit.ly/lsaTTh

    So, that said, it would be best to consult the WooThemes support team and see how they would recommend overriding/removing these styles in their theme. This should point you in the right direction to get it all sorted.

    Posted 13 years ago on Thursday June 30, 2011 | Permalink
  5. Great! Thank you very much Kevin! I will chat to them.

    Posted 13 years ago on Thursday June 30, 2011 | Permalink
  6. Hi, I have a question regarding the form I’ve created. Please see the page where I’ve uploaded the form http://goparents.com.au/competitions/win-1-of-3-the-kennedys-dvds-starts-now
    The theme I am using is Thesis theme.
    The fields are not aligned and I can’t get rid of the bullet points. Can you please help?
    Thanks
    Lay Ean

    Posted 13 years ago on Thursday June 30, 2011 | Permalink
  7. @layean

    Your default form styes aren't being output in your page. Go to your forms settings page (FORMS > SETTINGS) in the left nav.. and verify that the "output css" option is set to "yes". Get back to me if it is and you still have the formatting problems.

    Posted 13 years ago on Thursday June 30, 2011 | Permalink
  8. Thanks so much Kevin. Form layout is now fixed. Lay Ean

    Posted 13 years ago on Friday July 1, 2011 | Permalink

This topic has been resolved and has been closed to new replies.