Remove hover effects from submit and reset buttons: step-by-step guide
P粉099000044
P粉099000044 2024-04-01 22:32:31
0
1
499

What command do I need to use to make it not scale when I click the "Submit" or "Reset" button. I want them to look normal. I should use hover for this program but not for the last 2 buttons

See below the code I have so far. Everything is appreciated

<!DOCTYPE html>
<html>
<head>
    <title>CSS rules</title>

    <style>
input:focus{
    background-color: yellow;
    height: 40px;
    width: 280px;
    color: blue;
    font-size: 24px;
}
input:hover{
    background-color: cyan;
    height: 40px;
    width: 280px;
    color: red;
    font-size: 24px;
}
</style>
</head>

<body>

    <form action="">

        <table>
            <tr>
                <td>Last Name:</td>
                <td>
                    <input type="text" id="LastName" />
                </td>
            </tr>

            <tr>
                <td>First Name:</td>
                <td>
                    <input type="text" id="FirstName"/>
                </td>
            </tr>

            <tr>
                <td>E-mail Address :</td>
                <td>
                    <input type="password" id="Email"/>
                </td>
            </tr>

            <tr>
                <td>
                    <input type="submit"/>
                </td>

                <td>
                    <input type="reset"/>
                </td>
            </tr>
        </table>

    </form>
</body>
<!--body tag ends here-->
</html>
<!--html tag ends here-->

Tried using code but I can't figure it out

P粉099000044
P粉099000044

reply all(1)
P粉037450467


    CSS rules

    




    
Last Name:
First Name:
E-mail Address :

Changed the way styles are called. By passing [type=text] in CSS, you ensure that only type=text and type=password pick up styles, and make the submit and reset buttons not pick up styles.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template