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.

Button changes color when cursor is hovering over footer?

  1. Hi,

    I'm trying to add a hover state on a button. The button changes color but instead of the button changing color when the cursor is on the button by itself, the button changes color anytime that the cursor is in the footer?

    The CSS I'm using is this:
    body #gform_wrapper_1 .gform_footer input[type=submit]
    {border: 2px solid white;
    background-color:black;
    color:white;
    height:35px;
    width:150px;
    margin-left:389px;
    border-radius: 10px;
    }
    body #gform_wrapper_1 .gform_footer:hover input[type=submit] {
    color:white;
    background-color:gray;
    }

    Posted 11 years ago on Saturday May 25, 2013 | Permalink
  2. Richard Vav
    Administrator

    You need to move the hover state to the end of the selector like so

    body #gform_wrapper_1 .gform_footer input[type=submit]:hover {
    Posted 11 years ago on Saturday May 25, 2013 | Permalink
  3. Brilliant...I would never have guessed that, thanks.

    Posted 11 years ago on Saturday May 25, 2013 | Permalink
  4. Richard Vav
    Administrator

    You're welcome

    Posted 11 years ago on Saturday May 25, 2013 | Permalink

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