WordPress.org

Support

Support » Themes and Templates » styling reset button for contact form 7

styling reset button for contact form 7

  • jahur
    Participant

    @jahur

    I added a reset button to my contact us form by adding this code.
    <input type=”reset” />
    How do I add css to style reset button. Please specify which css file do I add code.

Viewing 1 replies (of 1 total)
  • grace_8765
    Member

    @grace_8765

    At the top of the contact form add in:

    <style>
    input[type="reset"] {width: 30px;}
    </style>

    Obviously you can add any standard css in place of the width parameter.

    -or-

    You can add to your child theme’s style.css

    input[type="reset"] {width: 30px;}

    with this you might want to add in a class to your individual contact form(s) so you can style them differently, such as:

    .brownform input[type="reset"] {width: 30px;}

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘styling reset button for contact form 7’ is closed to new replies.