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.

Input Field Appearance

  1. cmonica
    Member

    The input fields on my form don't have a consistent look...the Name field has an outline all around but the Email field only has an outline on the top. Is this a browser issue...it looks that way in both Firefox and IE?

    http://sacforeclosurehelp.com/test-builder/contact/

    Posted 13 years ago on Monday March 28, 2011 | Permalink
  2. Your stylesheet (beginning at line 935) sets rules for different input types

    [css]
    input[type=text],
    input[type=password],
    input.text,
    input.title,
    textarea, select {
    	font-size: 1em;
    	margin-top: .5em;
    	margin-bottom: .5em;
    }
    input[type=text],
    input[type=password],
    input.text,
    input.title,
    textarea {
    	background-color: #FFFFFF;
    	border: 1px solid #999999;
    	padding: 5px;
    }
    input[type=text]:focus,
    input[type=password]:focus,
    input.text:focus,
    input.title:focus,
    textarea:focus {
    	border-color: #666666;
    }
    textarea {
    	width: 30em;
    	height: 20em;
    }

    You're using the HTML5 enabled fields and your email field is type="email" - that's not defined in your CSS along with the other types. If you add that to your rules, then everything should format the same. Since you're using the HTML5 fields, you'll probably want to add the "tel" and "url" types as well for the phone and website fields.

    [css]
    input[type=text],
    input[type=email],
    input[type=password],
    input[type=url],
    input[type=tel] {your:styles}
    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  3. cmonica
    Member

    Ok, but should I add the above rules to my form.css file or copy the contents of the form.css file to my stylesheet and then add the rules? And to clarify me "using HTML5 enable fields" is that because of my theme or because of Gravity Forms? Is there a setting I should have on Gravity Forms or when I activated to make sure the above rules are included on the form.css file by default?

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  4. Never edit/change the Gravity Forms files in it's plugin folder as your changes will be overwritten whenever an automatic update is run.

    You always place customizations in your theme or child theme files. CSS customizations would go in your themes stylesheet, code customizations using hooks/filters would go in your themes functions.php file.

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink