WordPress.org

Ready to get started?Download WordPress

Forums

styling reset button for contact form 7 (2 posts)

  1. jahur
    Member
    Posted 1 year ago #

    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.

  2. grace_8765
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic