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.

Custom CSS to make form appear correctly?

  1. JonnoPrice
    Member

    Hi there.

    I don't speak CSS very well (red face).

    I've installed a new theme and then installed Gravity Forms. It appears the theme is overriding the GF styling and as a result it is displaying poorly.

    For example I can't see the input boxes or the submit button.

    The theme (http://www.s5themes.com/theme/simplecorp/) does have a Custom CSS box where you can put in CSS.

    Can you please help and tell me what custom css commands I can use to make this display?

    My form is live here http://benchmarkingcrew.com/register-interest/

    thanks in advance

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  2. your theme has disabled all the default borders for input types.. that's kind of stupid in my opinion. You can add this to re-enable the borders for your Gravity Forms. You can also add other properties to the rule if you need.. such as the height value I've added below.

    [css]
    body .gform_wrapper input[type=text],
    body .gform_wrapper input[type=url],
    body .gform_wrapper input[type=email],
    body .gform_wrapper input[type=tel],
    body .gform_wrapper input[type=number],
    body .gform_wrapper input[type=password],
    body .gform_wrapper select
    {
    	border: 1px solid #AAAAAA!important;
    	height: 20px
    }

    test screenshot: http://bit.ly/RmAWfM

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  3. JonnoPrice
    Member

    Hi Kevin and thanks I appreciate the help.

    I've just added the text you provided and the single line boxes are displaying. the paragraph text boxes still don't have a border and the submit button is still invisible.

    http://benchmarkingcrew.com/register-interest/

    Once I have this all fixed I'll also send a note to the them developer so they can look to fix this in their next update.

    Cheers
    Jonathan

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  4. Oops. I left the textarea off the rule.. try this one.

    [css]
    body .gform_wrapper input[type=text],
    body .gform_wrapper input[type=url],
    body .gform_wrapper input[type=email],
    body .gform_wrapper input[type=tel],
    body .gform_wrapper input[type=number],
    body .gform_wrapper input[type=password],
    body .gform_wrapper select,
    body .gform_wrapper textarea
    {
    	border: 1px solid #AAAAAA!important;
    	height: 20px
    }
    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  5. JonnoPrice
    Member

    Hi Kevin,

    Thanks but unfortunately that addition did not do the trick. I've added the following Custom CSS to the theme:

    body .gform_wrapper input[type=text],
    body .gform_wrapper input[type=url],
    body .gform_wrapper input[type=email],
    body .gform_wrapper input[type=tel],
    body .gform_wrapper input[type=number],
    body .gform_wrapper input[type=password],
    body .gform_wrapper select
    body .gform_wrapper textarea
    {
        border: 2px solid #ADD8E6!important;
        height: 20px
    }

    Still don't see the larger text area border nor the submit button.
    http://benchmarkingcrew.com/register-interest/

    Thanks in advance
    Jonathan

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  6. You need a comma at the end of line 07. I checked your site and the comma is missing from the styles you added there as well.

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  7. JonnoPrice
    Member

    Thanks Chris, the comma fixed the large text box areas.. the only thing still missing is the submit button :-) Can you help with this final piece of the puzzle?

    PS I also updated the theme as suggested by the theme author but clearly this did not help.. I've told them they should fix whatever it is because having a theme that works with Gravity Forms is a bit of a no-brainer.

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  8. You can use this CSS to style the submit button. The style is just to show you how to target the button:

    [css]
    body .gform_wrapper .gform_button {
        color: #000;
        border: 2px solid #ADD8E6!important;
        padding: 5px;
    }
    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  9. JonnoPrice
    Member

    You sir are a gentleman and a scholar

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink
  10. Glad we were all able to help you get that resolved.

    Posted 11 years ago on Wednesday October 31, 2012 | Permalink