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.

body form text area for the phone field

  1. Hi, I'm trying to add some css styles to my gravity forms.

    But I'm a bit blocked by the advanced field phone that I can't manage to change at all. all other input fields works great. I guess that I am not using the good input type. Here the css code I'm using.

    [css]
    body form textarea,
    body .gform_wrapper textarea,
    body form input[type=text],
    body .gform_wrapper input[type=text],
    body form input[type=url],
    body .gform_wrapper input[type=url],
    body form input[type=email],
    body .gform_wrapper input[type=email],
    body form input[type=phone],
    body .gform_wrapper input[type=phone],
    body form input[type=number],
    body .gform_wrapper input[type=number],
    body form input[type=file],
    body .gform_wrapper input[type=file] {
      font-size: 13px;
      padding: 5px 8px;
      outline: none;
      color: #666;
      border: none;
      background: #ddd;
      -webkit-border-radius: 3px;
      -khtml-border-radius: 3px;
      -moz-border-radius: 3px;
      border-radius: 3px;
      -webkit-background-clip: padding-box;
      -khtml-background-clip: padding-box;
      -moz-background-clip: padding-box;
      background-clip: padding-box;
      -webkit-transition: all 0.2s ease-in-out;
      -moz-transition: all 0.2s ease-in-out;
      -ms-transition: all 0.2s ease-in-out;
      -o-transition: all 0.2s ease-in-out;
      transition: all 0.2s ease-in-out;
    }

    any idea ?

    thanks

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  2. Hey there, could you post a link to your form?

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  3. The correct input type is "tel" not "phone". That's probably why you're not seeing your properties being applied.

    [css]
    body form input[type=tel],
    body .gform_wrapper input[type=tel]

    http://dev.w3.org/html5/markup/input.tel.html

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink