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 fix for Email & Phone Fields

  1. summitkreative
    Member

    On many of the Gravity Forms I have created I have an issue with certain fields not getting styled to match the rest of the forms. Generally it seems to be the email and phone field.

    See this link for an example: http://www.primeorlandoland.com/user-registration/

    Would someone be able to explain to me what I am doing wrong, or if I have to override a particle style.

    Posted 12 years ago on Wednesday February 8, 2012 | Permalink
  2. In your theme's stylesheet you have:

    [css]
    input[type="text"], input[type="password"], textarea, {
    background: #FAFAFA;
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    border: 1px solid #DDD;
    color: #888;
    border-image: initial;
    }

    To target the email and phone input types, just replace that with this:

    [css]
    input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea, {
    background: #FAFAFA;
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    border: 1px solid #DDD;
    color: #888;
    border-image: initial;
    }
    Posted 12 years ago on Wednesday February 8, 2012 | Permalink
  3. summitkreative
    Member

    Thank you. That did the trick. Appreciate your quick help.

    Posted 12 years ago on Wednesday February 8, 2012 | Permalink
  4. Awesome - glad to help!

    Posted 12 years ago on Wednesday February 8, 2012 | Permalink

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